From 213b9a068e0308f06fc6fe8b9d58ef412501ee79 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 31 Dec 2020 17:07:51 +0530 Subject: [PATCH] Fix attribute name --- webhook/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webhook/views.py b/webhook/views.py index f53e7af7..5760b0dd 100644 --- a/webhook/views.py +++ b/webhook/views.py @@ -240,8 +240,8 @@ def handle_webhook(request): if incomplete_pm.request: request = json.loads(incomplete_pm.request) logger.debug("request = %s" % str(request)) - if incomplete_pm.stripe_onetime_charge: - soc = incomplete_pm.stripe_onetime_charge + if incomplete_pm.stripe_charge_id: + soc = incomplete_pm.stripe_charge_id logger.debug("stripe_onetime_charge = %s" % str(soc)) if incomplete_pm.gp_details: gp_details = json.loads(incomplete_pm.gp_details)