Skip to content

Create a checkout session

POST
/checkout/sessions

Fixes amount and currency server-side and returns the hosted URL the customer is sent to. The processor credential TTL does NOT start here, it starts when the customer lands and the page acquires credentials.

object
amount
required

A monetary amount in the currency’s minor units (e.g. cents for USD).

integer format: int64
Example
1000
currency
required

Currently supported currencies by Paygasus Pay

string
Allowed values: USD
Example
USD

Checkout session created

object
amount
required

A monetary amount in the currency’s minor units (e.g. cents for USD).

integer format: int64
Example
1000
created
required
integer format: int64
currency
required

Currently supported currencies by Paygasus Pay

string
Allowed values: USD
Example
USD
id
required
string
livemode
required
boolean
object
required
string
payment_intent_id
One of:
null
payment_status
One of:
null
status
required
string
Allowed values: created opened completed expired
status_detail
string | null
url
required

The Paygasus-hosted page for this session — where the merchant sends the customer.

string

Invalid request

object
error
required
object
code
required
string
message
required
string
param
string | null
type
required
string