Create payment session
Request
Payment amount in minor units (e.g. cents)
Unique merchant reference. Recommended to be only alphanumeric characters (for acceptance across providers, otherwise note that they might appear stripped to alphanumerics on customer’s statements, e.g. ref-123 -> ref123)
Currency the end customer pays in (ISO 4217). Defaults to the primary currency for payerDetails.location when omitted. Used for FX-enabled sessions to determine the source→collection pair.
URL the buyer is redirected to after payment. Hosted checkout appends ?status=completed|failed|cancelled before bouncing the buyer. Direct-API redirection flows redirect the buyer here with no ?status param — your page should render a processing state and rely on transaction webhooks for authoritative terminal status.
Payment-specific attributes and metadata that will be stored with the session
Session lifetime in seconds. The payment confirmation window expires this long after creation; defaults to the standard session lifetime when omitted.