Create card payment
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-key
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_type
Allowed values:
details
customer
webhook_url
HTTPS endpoint that receives the payment result.
Response
Checkout session created
status
code
data
Errors
400
Bad Request Error
401
Unauthorized Error
