BUG FIX: must use request.POST.get("approved", 'None') to get approved attribute in IPN

pull/1/head
Raymond Yee 2012-01-11 13:58:29 -08:00
parent 712b803334
commit 9d7be4849a
1 changed files with 1 additions and 1 deletions

View File

@ -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':