Add logger message

This commit is contained in:
PCoder 2020-12-31 15:56:08 +05:30
parent 9ae4b96968
commit b2f0a45679

View file

@ -745,6 +745,9 @@ class OrderConfirmationView(DetailView, FormView):
}, },
'stripe_key': settings.STRIPE_API_PUBLIC_KEY, 'stripe_key': settings.STRIPE_API_PUBLIC_KEY,
}) })
logger.debug("Request %s" % create_incomplete_intent_request(
self.request))
logger.debug("%s" % str(payment_intent))
IncompletePaymentIntents.objects.create( IncompletePaymentIntents.objects.create(
request=create_incomplete_intent_request(self.request), request=create_incomplete_intent_request(self.request),
payment_intent_id=payment_intent.id, payment_intent_id=payment_intent.id,
@ -755,6 +758,7 @@ class OrderConfirmationView(DetailView, FormView):
gp_details=request.session["generic_payment_details"], gp_details=request.session["generic_payment_details"],
billing_address_data=request.session["billing_address_data"] billing_address_data=request.session["billing_address_data"]
) )
logger.debug("IncompletePaymentIntent done")
return render(request, self.template_name, context) return render(request, self.template_name, context)
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):