Create a checkout session
POST/checkout/sessions
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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
amount
required
A monetary amount in the currency’s minor units (e.g. cents for USD).
integer format: int64
Example
1000currency
required
Currently supported currencies by Paygasus Pay
string
Example
USDResponses
Section titled “Responses”Checkout session created
object
amount
required
A monetary amount in the currency’s minor units (e.g. cents for USD).
integer format: int64
Example
1000created
required
integer format: int64
currency
required
Currently supported currencies by Paygasus Pay
string
Example
USDid
required
string
livemode
required
boolean
object
required
string
payment_intent_id
status
required
string
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
