Add more logging to IPN verification

This commit is contained in:
Tanner Collin 2020-07-26 00:06:17 +00:00
parent 9524803ca3
commit 335e152ffb

View File

@ -87,6 +87,7 @@ def verify_paypal_ipn(data):
try:
r = requests.post(VERIFY_URL, params=params, headers=headers, timeout=4)
r.raise_for_status()
logger.info('Result: ' + r.text)
if r.text == 'VERIFIED':
return True
except BaseException as e:
@ -97,6 +98,7 @@ def verify_paypal_ipn(data):
try:
r = requests.post(VERIFY_URL, params=params, headers=headers, timeout=4)
r.raise_for_status()
logger.info('Result: ' + r.text)
if r.text == 'VERIFIED':
return True
except BaseException as e: