Skip to main content
Use stripe.onCheckoutSessionCompleted to run an automation when a Stripe Checkout Session completes.

Example

automations/stripe-on-stripe-checkout-session-completed.automation.ts
Optional static account defaults to the project binding.

Trigger data

Returns the complete Stripe Event envelope with type: "checkout.session.completed". The typed data.object contains the Stripe resource for this event. Automate.ax verifies Stripe’s signature against the exact request body before accepting an event. Event fields use camel case, while metadata keys remain unchanged. Stripe doesn’t guarantee event delivery order, so use id, resource IDs, and timestamps when coordinating related events. For delayed payment methods, completion can arrive with data.object.paymentStatus: "unpaid". Wait for On Stripe Checkout delayed payment succeeded before fulfillment. Use On Stripe Checkout delayed payment failed to handle a later failure. See On Stripe event for the shared envelope and delivery behavior.