#Gyan-Checkout

1 messages · Page 1 of 1 (latest)

lavish compass
#

hello! i'd suggest listening for the checkout.session.completed event

tropic blade
#

is this somekind of call that will be fired at the end or keep firing at regular intervals?

keen dock
#

Hi @tropic blade I'm taking over this thread

#

What Alex talks about is Webhook. If you register a webhook endpoint that listens to checkout.session.completed, Stripe will send an event to your webhook endpoint when a Checkout Session is completed. You are able to get data related to this CheckoutSession in the event object, and use it to fulfil the order.

tropic blade
#

okay, and i will have to register this endpoint in stripe dashboard as well? can you send me the page link?

#

so, i wanted to show a receipt on successful payment, should i remove the success-url from the create-checkout-session and keep the redirection under "fulfil the order"

#

?

keen dock
#

You can refer to the links that Alex sent earlier to get started with webhook

#

what do you mean by keep the redirection under "fulfil the order" ?