Add more logging to IPN verification
This commit is contained in:
@@ -87,6 +87,7 @@ def verify_paypal_ipn(data):
|
|||||||
try:
|
try:
|
||||||
r = requests.post(VERIFY_URL, params=params, headers=headers, timeout=4)
|
r = requests.post(VERIFY_URL, params=params, headers=headers, timeout=4)
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
|
logger.info('Result: ' + r.text)
|
||||||
if r.text == 'VERIFIED':
|
if r.text == 'VERIFIED':
|
||||||
return True
|
return True
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
@@ -97,6 +98,7 @@ def verify_paypal_ipn(data):
|
|||||||
try:
|
try:
|
||||||
r = requests.post(VERIFY_URL, params=params, headers=headers, timeout=4)
|
r = requests.post(VERIFY_URL, params=params, headers=headers, timeout=4)
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
|
logger.info('Result: ' + r.text)
|
||||||
if r.text == 'VERIFIED':
|
if r.text == 'VERIFIED':
|
||||||
return True
|
return True
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
|
Reference in New Issue
Block a user