#yogeshInvideo

1 messages ยท Page 1 of 1 (latest)

pale plumeBOT
cobalt pier
#

Hi ๐Ÿ‘‹

  1. It depends on how you collect the Payment Method data. Could you share the Request ID for the API request where you create the Setup Intent.
  2. A bank can request authentication at any time. Do you have an example of this?
ionic crag
#

SI: req_OWo4YFO9UmxfZh

cobalt pier
#

Okay so you didn't collect card details here, you provided an existing Payment Method

ionic crag
#

yes

#

I've created a PM with JS SDK with stripe.createPaymentMethod and pass that PM to create setupIntent

cobalt pier
#

Okay so that won't handle 3DS for you

#

This will do a much better job of ensuring you don't run into that problem

ionic crag
#

Doc says I should create setupIntent first then feed clientSecret to Elements.

And then we call confirmSetup but Is there anyway to avoid redirection?

cobalt pier
#

What do you mean? The redirect URL is required because some payment methods require taking the customer to a new interface (e.g. Klarna). If you only use cards this shouldn't be a concern. I recommend testing this integration exactly as it is written to see if this works for you

pale plumeBOT
ionic crag
#

Ohh okay let me try then first

#

Also, How do we handle payment_intent_mandate_invalid code?
Doc doesn't says anything how to handle this.

cobalt pier
#

Can you share an example request where you hit that error?

ionic crag
#

Request ID: req_s01reY6T8VgXO9

cobalt pier
#

This subscription was canceled

ionic crag
#

I canceled it after but I was trying to update the subscription to different pricing plan.

cobalt pier
#

Got it, still digging

mortal fjord
#

@vagrant dagger

vagrant dagger
#

Hello! I'm taking over and catching up...

cobalt pier
#

Hi ๐Ÿ‘‹

Okay so the issue is that the mandate what was created for the default payment method on that Subscription was not active yet.

#

The update you made requires attempting payment but since the mandate for that card was not active it failed.

#

Here is the relevant text

Stripe creates the Mandates object (returned as part of the mandate setup) in the pending state. When the mandate transitions to an active state (approximately 60-90 seconds), a mandate.updated webhook is emitted.
from our doc on India recurring payments: https://stripe.com/docs/india-recurring-payments

ionic crag
#

Got it, thanks for the help. ๐Ÿ‘

cobalt pier
#

FYI the event notifying you that the mandate was ready fired ~1m later so then you could have updated the subscription without a problem

ionic crag
#

Understood

cobalt pier
#

Great, I just wanted to make sure you understood it was just a little timing issue and not something more serious.

ionic crag
#

yeah I understood. Check Gov website also they stated the same ๐Ÿ˜