CreateCheckoutSessionDto
- referenceType: stringrequired
Your own reference, and the handle you will find this by. Required: we never invent one, because a reference we made up is not one you can reconcile against.
- allowedType: array of "crypto" or "fiat"enum
_rails Restrict how the payer may pay. Omit to offer everything.
- amountType: number
What to charge, in USD. Omit it and the line items are added up instead; send both and they must agree.
- cancelType: string
_url Where a payer who gives up is returned to.
- collectType: array of stringenum
Details to ask the payer for, on top of whatever the rail already needs. A mobile-money payer is asked for their number either way.
valuesemailphonenamebilling_address - currencyType: string
Display currency. Settlement is always USD.
- customerType: string
_id The customer this is for, if you already hold one.
- expiresType: string
_at When the session stops accepting payment. Defaults to 24 hours, which is long enough for somebody to finish a bank transfer tomorrow morning.
- lineType:
_items Properties: 3What the payer is buying, shown on the page. Display only — we do not price, tax or ship them.
- metadataType: object
Arbitrary key/value data you control.
- successType: string
_url Where the payer lands once they have paid.
{CHECKOUT_SESSION_ID}is replaced, so your page can read the result without waiting for the webhook. - titleType: string
Shown to the payer as the headline.