#vish-webhooks
1 messages ยท Page 1 of 1 (latest)
Thanks for helping so late on a Friday evening
So a Checkout Session can expire (by default it will be expired and unusable after 24 hours): https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-expires_at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I have noticed that it does not expire incase the payment goes through
Which is different from a failed card. If a charge fails, Checkout displays an error and awaits another payment method
So you are saying in every case, except successful payment, "checkout.session.expired" will be called?
If you're using cards only, yes. If you're using async payment methods there are other Events: https://stripe.com/docs/api/events/types#event_types-checkout.session.async_payment_failed
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Only cards. Ok so this works. What about subscription? What gets called everytime a subscription payment is made?