#OneLap
1 messages · Page 1 of 1 (latest)
Not with Stripe.js unfortunately, that is typically done on the server
Is this to confirm that the payment was successful before provisioning or something?
It's to pull the setup intent and then get the customer id and payment id.
Is there a different way of pulling the setup_intent from the results of a checkout session mode="setup"
Stripe.js does have a function to retrieve a setup intent by its client-secret though I think you would also need to do something server-side to get the secret from the Checkout Session to your browser https://stripe.com/docs/js/setup_intents/retrieve_setup_intent
I think that retrieving the session server-side will be the best way to go here. It does add complexity to the page but it would be the most straightforward way to achieve this