#yogeshInvideo
1 messages ยท Page 1 of 1 (latest)
Hi ๐
- 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.
- A bank can request authentication at any time. Do you have an example of this?
SI: req_OWo4YFO9UmxfZh
Okay so you didn't collect card details here, you provided an existing Payment Method
yes
I've created a PM with JS SDK with stripe.createPaymentMethod and pass that PM to create setupIntent
Okay so that won't handle 3DS for you
I recommend you review our canonical integration doc for saving payment methods. https://stripe.com/docs/payments/save-and-reuse
This will do a much better job of ensuring you don't run into that problem
Doc says I should create setupIntent first then feed clientSecret to Elements.
And then we call confirmSetup but Is there anyway to avoid redirection?
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
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.
Can you share an example request where you hit that error?
Request ID: req_s01reY6T8VgXO9
This subscription was canceled
I canceled it after but I was trying to update the subscription to different pricing plan.
Got it, still digging
@vagrant dagger
Hello! I'm taking over and catching up...
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
Got it, thanks for the help. ๐
FYI the event notifying you that the mandate was ready fired ~1m later so then you could have updated the subscription without a problem
Understood
Great, I just wanted to make sure you understood it was just a little timing issue and not something more serious.
yeah I understood. Check Gov website also they stated the same ๐