#sreekanth-update-sub

1 messages ยท Page 1 of 1 (latest)

warped ravine
#

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?

leaden pine
#

No. He can update the subscription anytime

warped ravine
#

How is that occuring though? The customer is controlling this update, yes?

leaden pine
#

Yes

warped ravine
#

Got it. And then you are attempting to store their saved payment method instead of collect a new one

leaden pine
#

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

warped ravine
leaden pine
#

Any chance that I can redirect the user to complete the payment without using stripe js?

warped ravine
#

Yes there is. Can you provide the PaymentIntent ID associated with the screenshot above so I can check on something?

leaden pine
#

pi_3KnRGKSGtKVHB2p01bBGf9Po

#

Please check this one. It is a latest one I created

#

pi_3KnS3pSGtKVHB2p00mryy0QK

warped ravine
#

Looking!

leaden pine
#

Thanks ๐Ÿ™‚

warped ravine
#

Okay!

#

Sorry, forgot the specifics here so had to remind myself :).

#

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

leaden pine
#

Got it

#

But I am not getting the payment intent in the result of first request

warped ravine
#

You need to retrieve the paymentintent based on the subscription.latest_invoice

leaden pine
#

Oh.. Okay

#

Got you

#

Thank you very much

warped ravine
#

No problem!

leaden pine
#

This is the response I get

iron glade
#

Hello. Taking over for bismarck here. Give me a moment to catch up

leaden pine
#

Sure

#

Thanks

iron glade
#

You have to expand next_action

leaden pine
#

Oh

#

My bad

#

Thanks again ๐Ÿ™‚

iron glade
#

No problem!