v1
latestOpenAPI 3.1.02026-07-266133267.6 KBCreate Checkout Session
This lets you create a checkout session for your customer by generating a Tazapay hosted payment page.
Request body
Invoice currency for the checkout session (in uppercase, iso-4217 standard). By default, the invoice currency is the holding currency for the transaction.
Amount in cents. For example if you want to charge $10.12 pass 1012 as the value. For decimal handling for various currencies, refer to <a href="/API-Reference/appendix/Decimal-Currencies" target="_blank"> the guide here</a>
ID of the customer for the checkout session
URL where the customer is directed to after a successful payment
The URL the customer will be directed to if they decide to cancel payment and return to your website.
Specify the payment methods you want displayed for the session. If you do not specify, the default payment methods for the country are displayed to the customer
Specify the payment methods you want removed for the session
A short description to be displayed on the Tazapay hosted checkout screen
The time at which the checkout session is scheduled to expire. If expired using the expire api, this will contain the time that the checkout session expired at
Supporting documents for the transaction
Set of key-value pairs that can be attached to the object (JSON string format)
Your unique identifier for the session
An integer between 0 and 100. Percentage of processing fee to be paid by the customer. Tazapay will charge the customer an amount inclusive of the processing fee
Session ID retrieved from the <a href="/API-Reference/tazapay-api/javascript-sdk/integrate-with-risk-sdk"> risk SDK</a>
ID of the entity on whose behalf the checkout session is being created. The entity must belong to the merchant account. Format: ent_*
Example request
{
"metadata": "{\"key1\": \"value1\", \"key2\": \"value2\"}"
}Response
200
Indicates the status of the API response.
Describes the result of the checkout session creation.