#tonys3129
1 messages · Page 1 of 1 (latest)
hi! you can detect it by if the subscription.latest_invoice.payment_intent.status is requires_action https://stripe.com/docs/billing/subscriptions/overview#requires-action
You handle it by calling on the frontend using that PaymentIntent's client_secret. https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-attached
The subscription object doesn't hold the information? We need to make an extra call to know if there is an action required? Correct?
yes
stripe js is frontend code correct?
yes
Thank you very much I'll try to dig this. Have a great day
Hey, is it possible to avoid using stripe.js and to use the payment intent secret server side to redirect the customer to a validation page?
it's more complicated but I think it's possible
I think you need to call https://stripe.com/docs/api/payment_intents/confirm on the server, passing return_url , to change the next_action type to redirect_to_url and then you can manually redirect — https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-redirect . Not sure if it works for subscription invoice PaymentIntents but might work.
Mmm ok I'll check it out thank you very much