Create a new payment for collecting a one-off charge. Returns a payment URL that can be shared with the customer.
API key authentication
Payment amount in decimal format (e.g. '10.50'). Minimum 1.00, maximum 5,000.00. Contact support for higher limits.
^\d+(\.\d{1,2})?$ISO 4217 currency code.
USD, EUR, GBP, AUD Merchant organization ID. Required when using an API key that is not scoped to a single merchant.
Optional customer ID. Must belong to this merchant.
Client-provided key for safe retries. If a payment with the same key already exists, the existing payment is returned.
255Merchant-defined reference for this payment (e.g. order ID, invoice number).
255Arbitrary key-value string pairs to attach to the payment.
Optional breakdown of what the customer is being charged for.
100URL to redirect the customer to after a successful payment.
URL to redirect the customer to after a failed payment.
Whether to save the customer's payment method for future use. Defaults to false.
ISO 8601 duration for the payment lifetime. Defaults to P30D (30 days). Maximum is P31D (31 days). Examples: PT1H, P1D, P7D, P30D.
Existing payment returned (idempotency match)
Unique payment identifier (pay_* prefixed).
payment Payment amount in decimal format (e.g. '10.50').
ISO 4217 currency code (e.g. 'USD').
Current status of the payment.
pending, processing, completed, expired, cancelled When the payment was created.
URL for the customer to complete the payment.
Customer ID if provided.
Client-provided idempotency key.
Merchant-defined reference for this payment.
Merchant-provided key-value metadata.
Breakdown of what the customer is being charged for.
When the payment expires.