Model production payment lifecycles with stateful intents, client secrets, two-phase authorizations, and automated webhook events. Supports both automatic immediate capture and manual two-step authorization/capture workflows.
Every PaymentIntent transitions through well-defined, immutable terminal or transitional states.
Intent created on backend. Safe client_secret returned to frontend UI.
3DS 2.0 challenge or biometric authorization required before the bank approves funds.
Card authorized for two-step fulfillment (capture_method: "manual"). Awaiting capture.
Funds debited. Email receipt delivered to Virtual Inbox. Webhook dispatched.
Test every step of the payment pipeline directly against your live isolated visitor sandbox.
4900 = $49.00 USD).Prevent double-billing on network drops, mobile connection switching, and client retries.
Attach a unique Idempotency-Key: <uuid> header to any POST request. If a retry occurs with the exact same key:
Idempotent-Replay: true.Always tie your idempotency key to a specific checkout cart ID or user action attempt rather than a generic random string:
Complete client-side and server-side code samples for modern frameworks.