#bhaskar
1 messages · Page 1 of 1 (latest)
Hello 👋
We have a guide here
https://stripe.com/docs/payments/save-and-reuse?client=react
the guide does not specify how it calls the backend
how the paymentform submit calls the backend
Client-side Stripe SDK calls the API when you call confirmSetup
https://stripe.com/docs/payments/save-and-reuse?platform=web&client=react#web-submit-payment-details
onsubmit calls confirmSetup method. but my question is how does it call setupintentcreate
That's not something that Stripe SDK would do for you. That part is on your app to use fetch or other similar function to call your own server which then creates the setup intent