Work in progress

This commit is contained in:
PCoder 2020-12-07 07:53:20 +05:30
parent e9801eb9c4
commit 352c780287

View file

@ -956,9 +956,9 @@ class OrderConfirmationView(DetailView, FormView):
logger.debug(stripe_subscription_obj) logger.debug(stripe_subscription_obj)
latest_invoice = stripe.Invoice.retrieve( latest_invoice = stripe.Invoice.retrieve(
stripe_subscription_obj.latest_invoice) stripe_subscription_obj.latest_invoice)
ret = stripe.PaymentIntent.confirm( # ret = stripe.PaymentIntent.confirm(
latest_invoice.payment_intent # latest_invoice.payment_intent
) # )
if ret.status == 'requires_source_action' or ret.status == 'requires_action': if ret.status == 'requires_source_action' or ret.status == 'requires_action':
pi = stripe.PaymentIntent.retrieve( pi = stripe.PaymentIntent.retrieve(
latest_invoice.payment_intent latest_invoice.payment_intent