Create payment
checkout_create_paymentCREATES a payment (request an authorization, or an immediate capture) — this MOVES MONEY: it charges a card / payment source. Checkout.com: POST /payments. Provide amount (minor units), currency, and a source object such as { type: 'token', token: 'tok_...' }, { type: 'id', id: 'src_...' } (a saved instrument), or { type: 'customer', id: 'cus_...' }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in the currency's MINOR units (e.g. 1000 = $10.00; 0 = card verification). Required. | |
| source | Yes | Payment source object. Required. E.g. { type:'token', token:'tok_...' }, { type:'id', id:'src_...' }, or { type:'customer', id:'cus_...' }. | |
| capture | No | If true (default for card), capture immediately; if false, authorize only. | |
| currency | Yes | 3-letter ISO currency code, e.g. 'USD', 'GBP', 'EUR'. Required. | |
| customer | No | Customer object to associate/create, e.g. { id:'cus_...' } or { email, name }. | |
| metadata | No | Arbitrary key/value metadata to attach to the payment. | |
| reference | No | Your reference for the payment (e.g. order id). | |
| description | No | Description shown on the customer's statement / for your records. | |
| payment_type | No | Payment type, e.g. 'Regular', 'Recurring', 'MOTO'. | |
| idempotency_key | No | Idempotency key — sent as the Cko-Idempotency-Key header to safely retry. | |
| processing_channel_id | No | Processing channel id ('pc_...') to route the payment through. |