From 281493ad257231f4867d06339c014dc3b76f6451 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 12 Jul 2022 06:13:18 +0000 Subject: [PATCH] Replace paypal custom json " with ` --- apiserver/apiserver/api/utils_paypal.py | 2 +- webclient/src/PayPal.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apiserver/apiserver/api/utils_paypal.py b/apiserver/apiserver/api/utils_paypal.py index f7ec131..4010328 100644 --- a/apiserver/apiserver/api/utils_paypal.py +++ b/apiserver/apiserver/api/utils_paypal.py @@ -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 = {} diff --git a/webclient/src/PayPal.js b/webclient/src/PayPal.js index d4fc18c..fe0a17f 100644 --- a/webclient/src/PayPal.js +++ b/webclient/src/PayPal.js @@ -13,7 +13,7 @@ export function PayPalPayNow(props) { - + @@ -40,7 +40,7 @@ export function PayPalSubscribe(props) { - + @@ -68,7 +68,7 @@ export function PayPalSubscribeDeal(props) { - +