Capture both actions requires_action and requires_source_action
This commit is contained in:
parent
4c7b9eaa52
commit
81ec1125cb
2 changed files with 2 additions and 2 deletions
|
@ -959,7 +959,7 @@ class OrderConfirmationView(DetailView, FormView):
|
||||||
ret = stripe.PaymentIntent.confirm(
|
ret = stripe.PaymentIntent.confirm(
|
||||||
latest_invoice.payment_intent
|
latest_invoice.payment_intent
|
||||||
)
|
)
|
||||||
if 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
|
||||||
)
|
)
|
||||||
|
|
|
@ -1205,7 +1205,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView, FormView):
|
||||||
ret = stripe.PaymentIntent.confirm(
|
ret = stripe.PaymentIntent.confirm(
|
||||||
latest_invoice.payment_intent
|
latest_invoice.payment_intent
|
||||||
)
|
)
|
||||||
if 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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue