#r0zator
1 messages · Page 1 of 1 (latest)
Hi there
I'm not really sure what you mean by using the Stripe Element to retrieve the SetupIntent... do you mean accessing it from the callback from the confirmSetup Stripe.JS method?
Regardless, you should be retrieving server-side using: https://stripe.com/docs/api/setup_intents/retrieve
You use the SetupIntent ID for that, not its client_secret
Or you can retrieve clientside using https://stripe.com/docs/js/setup_intents/retrieve_setup_intent
But you noted you get
get that retrieveSetupIntent is undefined, there is no function named like that
What API version are you using?
Are you on an old API version?
on client side I have "stripe": "^11.4.0",
Ahh, so that was my mistake. On BE side I should have used the setup intent id instead of the client secret, good. I was using client secret.
thanks for the help!
Hi there. bismarck had to step out. You have everything you need now?
no, all good. Thanks!