#sreekanth-update-sub
1 messages ยท Page 1 of 1 (latest)
Hi there! Sorry, busy today. Reading!
So Checkout will only handle the initial payment for a Subscription. When you update, is your customer on-session for the update?
No. He can update the subscription anytime
How is that occuring though? The customer is controlling this update, yes?
Yes
Got it. And then you are attempting to store their saved payment method instead of collect a new one
Yes
The invoice gets created for the prorated amount and stripe tries to collect the amount. But fails due to 3D secure feature
I can see this log in stripe dashboard
Gotcha thanks. Okay so in this case you want to grab the relevant PaymentIntent client secret, and use confirmCardPayment via StripeJS to display the authentication modal for the customer to complete 3DS. See our JS reference here: https://stripe.com/docs/js/payment_intents/confirm_card_payment
Any chance that I can redirect the user to complete the payment without using stripe js?
Yes there is. Can you provide the PaymentIntent ID associated with the screenshot above so I can check on something?
pi_3KnRGKSGtKVHB2p01bBGf9Po
Please check this one. It is a latest one I created
pi_3KnS3pSGtKVHB2p00mryy0QK
Looking!
Thanks ๐
Okay!
Sorry, forgot the specifics here so had to remind myself :).
So in this case you would confirm the PaymentIntent from the invoice server-side and set the return_url: https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-return_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This will then move the PaymentIntent to a requires_action.next_action.redirect_to_url status
So in the response to the above confirm request you will then have a URL that you can redirect the customer to in order to complete 3DS
You need to retrieve the paymentintent based on the subscription.latest_invoice
No problem!
This response doesnt have the url to redirect the customer for completing 3DS
This is the response I get
Hello. Taking over for bismarck here. Give me a moment to catch up
You have to expand next_action
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
No problem!