Create card payment

View as Markdown

Opens a hosted card checkout. Redirect the customer to data.checkout_url. Send a new UUID in x-idempotency-key for every payment. Reuse that key only when retrying the same create request.

Authentication

x-api-keystring
API Key authentication via header
x-api-secretstring
API Key authentication via header

Headers

x-idempotency-keystringRequiredformat: "uuid"

Unique per payment. Generate a new UUID for each transaction (for example crypto.randomUUID() or a uuid library). Reuse the same value only to retry this exact request.

Request

This endpoint expects an object.
payment_typeenumRequired
Allowed values:
detailsobjectRequired
customerobjectRequired
webhook_urlstringRequiredformat: "uri"
HTTPS endpoint that receives the payment result.

Response

Checkout session created
statusstring
codeinteger
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error