#Mael CHEMLA
1 messages · Page 1 of 1 (latest)
Create the Checkout Session server-side, then use its url field to do the redirect
I don't think there is a client-side only option via Stripe (though it's not too hard to whip that up using a JS client-side library/framework)
ok thanks, also, how can I know if the session success or not ? In my app the checkout session is a step in my purchase process. I don't want to use the success redirect link to know if its work or not.
Are the webhook the only way to do this ?
I want to fire a function if the payment succeed
Webhooks are the only way to do that, so you'd want to code your handler to fire your function upon receiving the webhook