#talhaerkul-checkout-expiration
1 messages · Page 1 of 1 (latest)
That webhook won't be triggered until the session expires, which by default is 24 hours
That's really the only built in way you can know if someone has generated a checkout session without paying
Can I change the 24 hours, and let's say I made my transaction according to this order when the webhook is triggered when it expired after 24 hours, if the purchase is made, this checkout.session.expired webhook will be inactive, right?
talhaerkul-checkout-expiration
You will never get checkout.session.expired if the customer paid
That event is only for checkout sessions that weren't paid in the expiration window
You can set a custom expiration too here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-expires_at in case you don't want 24 hours
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It was really helpful, thank you