Endpoints
Returned objects
- A PaymentIntent (
pi_…) contains the amount, currency, and overall payment status. - A Charge (
ch_…) represents one confirmation attempt. It includes the outcome, authorization details, decline details, and settlement status. - A Refund (
rf_…) represents money returned from a completed Charge.
client_secret and returns only the browser-safe data needed to
continue checkout.
Browser card collection
When a publishable key retrieves a PaymentIntent, the response can include atokenization object. Use its tokenization_key to initialize Ionic Hosted
Card Fields in the browser. The key can create a one-time payment token; it
cannot submit a charge.
The key is returned with the PaymentIntent so the browser can initialize card
fields after retrieving that intent with a publishable key and its
client_secret. The browser does not need access to a secret API key or a
separate account-configuration endpoint. Adapter selection is handled by the
Ionic browser SDK and requires no integration logic.
The API does not include this object in secret-key responses, list responses,
capture or cancel responses, or webhooks.
Statuses
Retry and fulfillment rules
- Send an
Idempotency-Keyon create, confirm, capture, and cancel requests so retries do not duplicate an operation. - A
402decline embeds the current PaymentIntent; inspect its status before deciding whether to collect another payment method. - If you cancel while the status is
processing, the status can remainprocessinguntil the current attempt finishes. Wait for a webhook or retrieve the PaymentIntent again before retrying. - Fulfill an order only after the API response or a verified webhook reports a successful payment. A browser redirect alone is not confirmation.

