Mercurial > public > sg101
comparison donations/views.py @ 1185:8ec03abf16c1
Part of the last commit. :(
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 17 Oct 2021 15:07:54 -0500 |
parents | fbfb1a9c70e2 |
children |
comparison
equal
deleted
inserted
replaced
1184:fbfb1a9c70e2 | 1185:8ec03abf16c1 |
---|---|
156 logging.warning('IPN: duplicate txn_id') | 156 logging.warning('IPN: duplicate txn_id') |
157 return # no exception, this is a duplicate | 157 return # no exception, this is a duplicate |
158 | 158 |
159 # Is the email address ours? | 159 # Is the email address ours? |
160 business = params.get('business') | 160 business = params.get('business') |
161 if business != paypal_params()[1]: | 161 if business not in paypal_params()[1]: |
162 logging.warning('IPN: invalid business: %s', business) | 162 logging.warning('IPN: invalid business: %s', business) |
163 return | 163 return |
164 | 164 |
165 # is this a payment received? | 165 # is this a payment received? |
166 txn_type = params.get('txn_type') | 166 txn_type = params.get('txn_type') |