#ayushtomar5829_docs

1 messages ¡ Page 1 of 1 (latest)

zealous onyxBOT
#

👋 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.

iron marlin
#

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

random crane
iron marlin
#

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)

random crane
#

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 ?

iron marlin
#

Then you shouldn't need to set those fields if you're using the Payment Element and calling confirmSetup

random crane
#

let me confirm in 5 mins if we are using thatt

iron marlin
random crane
iron marlin
#

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

random crane
#

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?

harsh parcel
#

hi! I'm taking over this thread.

#

yes, that should work