#madclaws

1 messages ยท Page 1 of 1 (latest)

swift needleBOT
mint scarab
#

Hello ๐Ÿ‘‹
Give me a moment to take a look

dusk solstice
#

thanks

mint scarab
#

That guide is strictly for Stripe Invoicing (generating mandates for existing payment methods)
Is that what you're trying to do?

dusk solstice
#

yes

#

I am using setupIntent for capturing payment method. Every thing was working until autocharge fails in India due to need of mandates

#

Can you suggest a flow for this problem?

#

Acc to doc, mandates are generated on setupIntent

#

Isn't payment_method is also created while setupIntent

mint scarab
#

Have you tried setting mandate options on the initial SetupIntent when you collect the payment method information for the first time?

#

While the docs talk about having to already collect customer's payment method, the example actually doesn't reference an existing payment method ID at all

dusk solstice
#

Yes, tried but got error

mint scarab
#

can you share that request ID in text?
req_xxxx

dusk solstice
#

When i tried to remove payment_method, got response that payment_method is needed

#

req_wp1Anu5ZZXiORf
req_HAdGVXFiYMtTcA

mint scarab
#

ah you also may have confirm: true which you need to remove since you'll confirm the SetupIntent client-side

dusk solstice
#

oh ok, it was like that in doc

mint scarab
#

Yes the docs are trying to confirm the SetupIntent on the server-side (which you can do if you have the payment method collected already)

dusk solstice
#

oh ok, thanks will try then removing it and so i think no need of payment_method

mint scarab
#

Yup! ๐Ÿ™‚