Creates a new payment with the provided payment details.
Amount to be paid
{ "unit": "iso4217/USD", "value": "100" }Merchant/PSP order ID
{
"errorUrl": "https://example.com/error",
"successUrl": "https://example.com/success"
}Optional custom expiration timestamp (Unix seconds since epoch). Must be in the future if provided. If not provided, defaults to 5 minutes from now.
Payment created successfully
Payment expiration timestamp, in seconds since epoch
x >= 0Gateway URL to redirect the user to for payment
True if the payment is in a final state and no longer requires polling
Payment ID
"pay_7fa2ecc101ARZ3NDEKTSV4RRFFQ69G5FAV"
Payment status
requires_action, processing, succeeded, failed, expired, cancelled Time to poll for payment status, in milliseconds. Not present if the payment is in a final state.
x >= 0