#ELIZZER

1 messages · Page 1 of 1 (latest)

dull drumBOT
wild seal
#

hello! could you elaborate on what you mean by open a expired checkout session?

solar root
#

yeah sure

#

i am working on a booking site

#

i want to init booking only if the payment is done

wild seal
#

alright, but what does this have to do with an expired checkout session?

solar root
#

if the payment is not done and the session is expired, i want to recreate the same session

wild seal
#

if the Checkout Session is expired, you would need to create a new Checkout Session.

The way you would go about it is to create the Checkout Session with either metadata or a client_reference_id. When the Checkout Session is completed, upon receipt of the checkout.session.completed event (and with the details in metadata or client_reference_id), you can then create a booking in your server

solar root
#

and do we have a webhook for a checkout session payment?

wild seal
#

you would need to build that

solar root
#

like?

#

ill be back in like 20 min, pls don't close the thread

wild seal