CreateCheckoutSessionDto

  • 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.

  • Restrict how the payer may pay. Omit to offer everything.

  • What to charge, in USD. Omit it and the line items are added up instead; send both and they must agree.

  • Where a payer who gives up is returned to.

  • 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.

    values
    emailphonenamebilling_address
  • Display currency. Settlement is always USD.

  • The customer this is for, if you already hold one.

  • When the session stops accepting payment. Defaults to 24 hours, which is long enough for somebody to finish a bank transfer tomorrow morning.

  • What the payer is buying, shown on the page. Display only — we do not price, tax or ship them.

    Properties: 3
  • Arbitrary key/value data you control.

  • 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.

  • Shown to the payer as the headline.