BUG FIX: must use request.POST.get("approved", 'None') to get approved attribute in IPN
parent
712b803334
commit
9d7be4849a
|
@ -748,7 +748,7 @@ class IPN( object ):
|
|||
self.trackingId = request.POST.get('tracking_id', None)
|
||||
|
||||
# a bit uncertain about how well PayPal sticks to a standard case
|
||||
approved = self.response.get("approved", 'None')
|
||||
approved = request.POST.get("approved", 'None')
|
||||
if approved.lower() == 'true':
|
||||
self.approved = True
|
||||
elif approved.lower() == 'false':
|
||||
|
|
Loading…
Reference in New Issue