The documentation for Stripe's checkout.session.completed is vague.
It says it Occurs when a Checkout Session has been successfully completed.
When does a checkout session complete? When a successful charge has been made?
The documentation for Stripe's checkout.session.completed is vague.
It says it Occurs when a Checkout Session has been successfully completed.
When does a checkout session complete? When a successful charge has been made?
When does a checkout session complete? When a successful charge has been made?
Stripe emits the checkout.session.completed event each time one of your users successfully goes through the checkout flow:
https://stripe.com/docs/api/events/types#event_types-checkout.session.completed
The event won't be emitted if a user's payment fails, or if they fail to provide any of the required fields. There will however be other events (e.g., payment_intent.payment_failed) that will be emitted if you wanted to track failed attempts.
You can use the Stripe CLI to listen for all the events that are emitted to your account while running through the checkout flow with Stripe's test cards: