Compare integration modes
Use Accept a payment for the standard one-time flow. Use Payment intents when you need to separate authorization, confirmation, and capture.
Shared server-to-browser sequence
Every browser integration follows the same boundary:- Resolve the customer, cart, amount, currency, and order on your server
- Create one resource with an idempotency key
- Return only the resource ID and short-lived client token to browser code
- Let the secure component collect payment details and handle customer action
- Keep the order pending until a verified event or authoritative retrieval confirms it
- Fulfill once, then reconcile refunds, disputes, and delayed events by resource ID