Stripe: give session/checkout info to success page

How can I capture the checkout info on the ‘success page’ after a successful purchase? (using ‘stripe checkout’ so not a custom checkout page)

I’d imagine it should be possible by doing something like this?:

Use case:
Checkout successful → redirect to /welcome → grab the name/email/product from checkout → add name/email to database → show forms on /welcome to add more data to user in the database(password etc.)

I just need to pass the checkout ID to the page I guess, that way I can look it up with ‘retrieve checkout session’ and get all that info image

Community Page
Last updated: