From 56b287ba78a848b50c90ab05dcbd6ab2a0e15131 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 12 Jul 2022 04:16:29 +0000 Subject: [PATCH] Add Purchases PayPal category match --- apiserver/apiserver/api/utils_paypal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/apiserver/api/utils_paypal.py b/apiserver/apiserver/api/utils_paypal.py index 3a8f891..f7ec131 100644 --- a/apiserver/apiserver/api/utils_paypal.py +++ b/apiserver/apiserver/api/utils_paypal.py @@ -354,7 +354,7 @@ def process_paypal_ipn(data): defaults=dict(user=user), ) - if custom_json.get('category', False) in ['Snacks', 'OnAcct', 'Donation', 'Consumables']: + if custom_json.get('category', False) in ['Snacks', 'OnAcct', 'Donation', 'Consumables', 'Purchases']: logger.info('IPN - Category matched') update_ipn(ipn, 'Accepted, category') return create_category_tx(data, member, custom_json)