Replace paypal custom json " with `

This commit is contained in:
2022-07-12 06:13:18 +00:00
parent cebe0a8c87
commit 281493ad25
2 changed files with 4 additions and 4 deletions

View File

@@ -313,7 +313,7 @@ def process_paypal_ipn(data):
return False
try:
custom_json = json.loads(data.get('custom', ''))
custom_json = json.loads(data.get('custom', '').replace('`', '"'))
except (KeyError, ValueError):
custom_json = {}