Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When does checkout.session.completed trigger?

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?

like image 477
User Avatar asked Jul 13 '20 19:07

User


People also ask

What is the session timeout for Microsoft 365 service?

Microsoft 365 service Session timeout Microsoft 365 admin center You are asked to provide credentials for the admin center every 8 hours. SharePoint Online 5 days of inactivity as long as the users chooses Keep me signed in.

What are session lifetimes and why are they important?

Session lifetimes are an important part of authentication for Microsoft 365 and are an important component in balancing security and the number of times users are prompted for their credentials. Session times for Microsoft 365 services When users authenticate in any of the Microsoft 365 web apps or mobile apps, a session is established.

When does a webhook not receive an event?

A webhook set to listen to all events will not receive an event requiring explicit selection. Occurs whenever an account status or property has changed. Occurs whenever a user authorizes an application. Sent to the related application only. The name of the Connect application. Occurs whenever a user deauthorizes an application.

What is an occur event in Salesforce?

Occurs whenever an invoice item is deleted. Occurs whenever an invoice item is updated. Occurs whenever an authorization is created. Represents a synchronous request for authorization, see Using your integration to handle authorization requests. You must create a webhook endpoint which explicitly subscribes to this event type to access it.


1 Answers

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:

https://stripe.com/docs/stripe-cli

like image 152
ttmarek Avatar answered Oct 21 '22 23:10

ttmarek