Add script to import missing paypal txs from their API

This commit is contained in:
2020-02-13 22:49:08 +00:00
parent 5837694a2d
commit 42cd4ef0e7
4 changed files with 188 additions and 1 deletions

View File

@@ -287,7 +287,7 @@ def process_paypal_ipn(data):
member = members.get(id=member_id)
monthly_fees = member.monthly_fees
if amount.is_integer() and amount % monthly_fees == 0:
if amount.is_integer() and monthly_fees and amount % monthly_fees == 0:
num_months = int(amount // monthly_fees)
else:
num_months = 0