#madclaws
1 messages ยท Page 1 of 1 (latest)
Hello
I have omitted confirm: true and payment_method field from the request.
Can you provide an example SetupIntent that I can look at?
seti_1MHs7ZSBE9feZCbooDsYUqPW
Doc is saying to include payment_method id in setupIntent api, but payment_method is normally generated after setupIntent become success right?
That depends on whether you are collecting a new PaymentMethod or not.
Usually in this flow you would already have the PaymentMethod
I see, so how would i generate mandate in my case
Sorry, docs seems very confusing. Since it has server and client stuff. My question is if i already has paymentMethod , say collected through setupIntent, then why doc is again talking about 3DS and stuff (which is client side stuff, which has been done already)
Let's back up a second.
Are you attempting to start Subscriptions for Indian customers?
What are you trying to do exactly?
Ok, so what i am doing is i have to charge the customers from backend (off-session) on certain situations (which is not subscription pattern).
So i am using invoice-items and invoice to auto-charge the user.
This works outside India. But in India since 3DS is required payment fails on auto-charge, not even sending a invoice-payment email. So a Stripe dev told me to generate mandate, and it will solve the issue.
Yes okay that's correct.
So yeah in this flow, it is only supported currently to already have collected the PaymentMethod
Then, 3DS must be performed to authorize the mandate creation
It looks like you are doing everything right, but I also don't see a mandate populated which I'm surprised at
Looking more into that
ok, thanks
Ah wait so yeah here you don't already provide a PaymentMethod
So what you want to do in this flow is use stripe.createPaymentMethod clientside
To generate the PaymentMethod first
Then pass it to the SetupIntent
Oh you are using Payment Element
Yes
Yeah you can't use stripe.createPaymentMethod with Payment Element... ugh sorry this is so much harder than it should be
yeah, i have been biting my head for hrs, and very confused ๐
Yeah that's fair. Checking with a colleague, give me a sec
Still looking
Okayyyyy
So
Your flow is actually fine here
And the docs are just confusing, which I'll file some feedback to get them cleaned up.
However, the issue here was actually that this BIN does not support India mandates
I'm also going to file feedback that we should be exposing this to you in some way.
You mean, AMEX is the issue?
If you run the flow in test-mode using the 4000003560000123 card you will see a mandate returned upon successful 3DS completion.
Correct, it is an AMEX issue.
We have internal logs that state this Amex BIN does not support India Mandates
Ok, Thank you very much for taking time to find the issue. I will try with some different indian issued cards ๐