#goliath1879_docs
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1252257595729907762
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- goliath1879_docs, 23 minutes ago, 15 messages
Hi again ๐ ah, this if for India, I think that's the context that was missing before.
Can you share the ID of the request throwing that error?
I'll try to find the request ID from that
Let me know if you need anything else from me
It looks like a Mandate is being created by your Setup Intent, and is valid. I see these are livemode transactions, are you able to reproduce this behavior in testmode, so you can confirm the approach I'm about to suggest works there first?
If you pass the ID of the Mandate created by the Setup Intent, which is stored in the Setup Intent's mandate field, when trying to confirm the Payment Intent for your Invoice, does that succeed?
https://docs.stripe.com/api/setup_intents/object#setup_intent_object-mandate
https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-mandate
yeah I can confirm in the test mode as well. If you need I can share a test mode payment intent id or event id
The issue is we don't get the mandate_id created by setup intent. Even to retrieve mandate you need mandate id
I have checked the intent return the mandate parameter is null
Oh, you aren't making these confirmation requests direclty are you? They're being triggered by the automatic payment attempts for your Invoice?
Yeah. We are not doing any confirmation requests.
Gotcha, I'm not sure what's going on offhand and am asking a teammate to take a closer look.
Alright, since it seems you're building a flow for handling recurring payments for customers from India, you'll need to add additional parameters to your Setup Intent creation requests to be able to handle that scenario. We talk through that here:
https://docs.stripe.com/india-recurring-payments?integration=paymentIntents-setupIntents
I have tried this already but no success
Can you share the ID of the Setup Intent where you tried that? The one used for the Payment Method being used for the Invoice, related with the Payment Intent you shared, did not have the additional payment_method_options.card.mandate_options fields provided as suggested by that guide.
https://dashboard.stripe.com/test/payments/pi_3PRTYPSJWx115VVs0j5FCatu
this is from my test instance
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
That's pretty different from the flow you're looking into in production. There you're just creating a Payment Intent, rather than an Invoice, and aren't providing the ID of an existing Payment Method that was previously set up by a Setup Intent. That's why that request isn't leading to the same mandate error.
Let me check again .. can you please not close this thread in the meanwhile
https://dashboard.stripe.com/test/events/evt_3PSgiCSJWx115VVs0GMw1ilk
https://dashboard.stripe.com/test/events/evt_3PSgdHSJWx115VVs0ivTS1RE
These two are the latest events I tried with 2 different customers where I send the mandate options details but are missing in the payment intent, probably because I need to pass the mandate_id but mandate id is missing from the setupIntent.create API response
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
๐ stepping in here
Taking a look
Yep so the mandate ID is present upon the SetupIntent succeeding. The easiest way to get that Mandate ID is to set up a Webhook to listen for setup_intent.succeeded. The corresponding Event for your above PaymentMethod where you can see the Mandate ID is: https://dashboard.stripe.com/test/events/evt_1PRxNbSJWx115VVsBfmsabAQ
Alternatively you can just retrieve the SetupIntent using https://docs.stripe.com/api/setup_intents/retrieve