#ayushtomar5829_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/1255121024681513072
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Generally speaking you shouldn't need to use that field or be creating mandates manually at all. Our payment UIs handle the mandate generation automatically
Checkout, Payment Element, etc
https://docs.stripe.com/india-recurring-payments?integration=paymentIntents-setupIntents#create-mandate mandate reference is set as required field, it is required to be set in setup intent api?
As I said, if you're using one of our payment UIs (which you should be), then those fields are set automatically when required on confirmation of the intent
Otherwise reference can just be a unique identifier that your integration generates (UUID or something)
sorry I may not know all the available tools, we use setup intent in backend and payment elements in UI to generate the stripe payment UI, Just curious is mandate reference used anywhere apart from being a compliance requirement ?
Then you shouldn't need to set those fields if you're using the Payment Element and calling confirmSetup
let me confirm in 5 mins if we are using thatt
https://api.stripe.com/v1/setup_intents/{setup_intent_id}/confirm is this the call you are referring to?
Well you'd do it client-side via Stripe.js after your customer inputs their payment info: https://docs.stripe.com/js/setup_intents/confirm_setup
just to confirm https://docs.stripe.com/js/setup_intents/confirm_setup and https://docs.stripe.com/api/setup_intents/confirm are same?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Well they use the same underlying API method yes. But one is called client-side and the other server-side with your secret key. Most integrations only need the client-side function
http call going out of my system is https://api.stripe.com/v1/setup_intents/{setup_intent_id}/confirm so looks like front end is sending this call to stripe. So just to conclude, I will create setup intent without mentioning the mandate reference, setup intent taken by the front end code will be used to confirm the intent and it should fill the mandate reference automatically?