Capture both actions requires_action and requires_source_action

This commit is contained in:
PCoder 2020-10-11 17:21:15 +05:30
parent 4c7b9eaa52
commit 81ec1125cb
2 changed files with 2 additions and 2 deletions

View file

@ -959,7 +959,7 @@ class OrderConfirmationView(DetailView, FormView):
ret = stripe.PaymentIntent.confirm(
latest_invoice.payment_intent
)
if ret.status == 'requires_action':
if ret.status == 'requires_source_action' or ret.status == 'requires_action':
pi = stripe.PaymentIntent.retrieve(
latest_invoice.payment_intent
)

View file

@ -1205,7 +1205,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView, FormView):
ret = stripe.PaymentIntent.confirm(
latest_invoice.payment_intent
)
if ret.status == 'requires_action':
if ret.status == 'requires_source_action' or ret.status == 'requires_action':
pi = stripe.PaymentIntent.retrieve(
latest_invoice.payment_intent
)