Body Params
string
required

the destination we redirects the customer to upon the completion of the checkout session

string
required

the destination we redirects the customer to upon the cancellation of the checkout session

string

your reference to the customer

payment_method_types
array of strings
required

the payment methods you want to enable for the checkout session, you can add one or many from card, apple_pay, google_pay. Example: "payment_method_types": ["google_pay", "apple_pay", "card"]. Please note apple pay only works with Safari browser

payment_method_types*
line_items
array
required

one or many line_item objects. A line_item object has 7 attributes: name, quantity, type, currency, unit_amount_subunit, image_url, description. Example: "line_items": [ {"name": "some product", "quantity": "1","type": "product", "currency": "USD","unit_amount_subunit": "1999", "image_url": "https://xxxx.jpg", "description": "This is something"}, { "name":"some product", "quantity": "1", "type": "product", "currency": "USD","unit_amount_subunit": "1999", "image_url": "https://xxxx.jpg","description": "something" }, {"name": "Sales Tax(15%)","type": "tax", "currency": "USD", "unit_amount_subunit": "899"}]

line_items*
string
Defaults to payment

payment mode means create a checkout session aiming to complete an open order, while vault mode means let your customer submit their payment method details for future use.

Response

Language
Credentials
Request
Choose an example:
application/json