Fix attribute name

This commit is contained in:
PCoder 2020-12-31 17:07:51 +05:30
parent 33f741424d
commit 213b9a068e
1 changed files with 2 additions and 2 deletions

View File

@ -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)