#sebastian-checkout

1 messages · Page 1 of 1 (latest)

thin trench
#

hello, grabbing it from the url is the easiest, why do you ask?

quiet geyser
#

Because I want to get the costumer email from the checkout page and send an email to them

thin trench
#

so you take the CheckoutSession ID on your success webpage, send it to your backend
your backend retrieves the full CheckoutSession object and gets back details like customer email etc
and your backend sends them the email

the other way to do this is to do it all on your backend, by just listening to checkout.session.completed webhook events

quiet geyser
#

Ok and how do I get the checkout session id on my success page without putting it in the url because I dont want to have it in my url