Create widget token (deprecated)

Deprecated. Use Create widget token (v2), POST /api/v2/checkout/init, for a one-time payment, and Create subscription widget token, POST /api/v2/checkout/subscription/init, for a subscription. This version keeps working unchanged, with no end date announced yet. It is still the only one that takes customer_registered, for registered customers.

Server-side endpoint that mints a short-lived single-use widget token bound to one merchant, order, amount, and currency. Call this from your backend; never from the browser.

Add recurring to make the checkout a subscription: the shopper pays amount now and then every period, and customer_email becomes required.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required

Amount in minor units, e.g. 4999 for £49.99. For a recurring checkout this is charged every period.

string
required
length ≥ 1

3-letter ISO currency code, e.g. gbp. Any casing is accepted.

The shopper's email. When sent, the token accepts only this email; when omitted, it is bound to the first email the checkout supplies. Required with recurring: the renewals are billed to it.

The shopper's mobile number in E.164 (or UK 07…), normalised and bound to the token. Omit it for a guest-only checkout. For a mobile in a supported country, the checkout lets the shopper unlock and save cards after an SMS one-time code sent to this number. The shopper cannot change it in the widget. A malformed number is rejected with 400.

boolean
Defaults to false

Send true when customer_email belongs to a customer registered with you and verified by you. The checkout then lists, saves and pays with the cards this shopper saved with you without a one-time code. Requires customer_email and the registered-customers setting switched on in the Portal; otherwise 400.

string
required
length ≥ 1

Your order identifier, bound to the token.

RecurringTermsIn | null

Send it to make the checkout a subscription: the shopper pays amount now and then every period. Omit it for a one-time payment. Stripe merchants only.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json