Add Consumables to Paymaster

This commit is contained in:
2022-01-25 04:12:22 +00:00
parent 1d84423694
commit e6aaef9bf1
2 changed files with 48 additions and 26 deletions

View File

@@ -353,7 +353,7 @@ def process_paypal_ipn(data):
defaults=dict(user=user),
)
if custom_json.get('category', False) in ['Snacks', 'OnAcct', 'Donation']:
if custom_json.get('category', False) in ['Snacks', 'OnAcct', 'Donation', 'Consumables']:
logger.info('IPN - Category matched')
update_ipn(ipn, 'Accepted, category')
return create_category_tx(data, member, custom_json)