More loggers

This commit is contained in:
PCoder 2020-12-31 16:55:05 +05:30
parent 8827bd15ba
commit 37f82a48d5

View file

@ -230,6 +230,7 @@ def handle_webhook(request):
payment_intent_obj.id) payment_intent_obj.id)
incomplete_pm = IncompletePaymentIntents.objects.get( incomplete_pm = IncompletePaymentIntents.objects.get(
payment_intent_id=payment_intent_obj.id) payment_intent_id=payment_intent_obj.id)
logger.debug("incomplete_pm = %s" % str(incomplete_pm))
request = "" request = ""
soc = "" soc = ""
card_details_response = "" card_details_response = ""
@ -238,16 +239,21 @@ def handle_webhook(request):
billing_address_data = "" billing_address_data = ""
if incomplete_pm.request: if incomplete_pm.request:
request = json.loads(incomplete_pm.request) request = json.loads(incomplete_pm.request)
logger.debug("request = %s" % str(request))
if incomplete_pm.stripe_onetime_charge: if incomplete_pm.stripe_onetime_charge:
soc = json.loads(incomplete_pm.stripe_onetime_charge) soc = json.loads(incomplete_pm.stripe_onetime_charge)
logger.debug("stripe_onetime_charge = %s" % str(soc))
if incomplete_pm.gp_details: if incomplete_pm.gp_details:
gp_details = json.loads(incomplete_pm.gp_details) gp_details = json.loads(incomplete_pm.gp_details)
logger.debug("gp_details = %s" % str(gp_details))
if incomplete_pm.card_details_response: if incomplete_pm.card_details_response:
card_details_response = json.loads( card_details_response = json.loads(
incomplete_pm.card_details_response) incomplete_pm.card_details_response)
logger.debug("card_details_response = %s" % str(card_details_response))
if incomplete_pm.billing_address_data: if incomplete_pm.billing_address_data:
billing_address_data = json.loads( billing_address_data = json.loads(
incomplete_pm.billing_address_data) incomplete_pm.billing_address_data)
logger.debug("billing_address_data = %s" % str(billing_address_data))
logger.debug("1*******") logger.debug("1*******")
logger.debug(request) logger.debug(request)
logger.debug("2*******") logger.debug("2*******")