Integration Steps
Step 1: Set up your Tazapay account
Before integrating Tazapay Checkout, ensure you have a Tazapay account. Sign up if you haven’t already.Step 2: Create a Checkout Session
The Checkout Session is the core concept in Tazapay Checkout. It contains all the details about the transaction, such as the amount, currency, customer details and the payment methods. Specify the payment method the customer selected in the fieldpayment_methods.
Payment Method Nomenclature Each payment method is represented by a unique string in Tazapay. The name for a payment method is the combination of the payment method name and the currency in which the customer is charged. For example, the name for Paynow in Singapore ispaynow_sgdRelated Links:
- List of payment methods supported by Tazapay
- Collection Methods API - This returns the Tazapay name and other properties of each payment method
- Checkout API
Sample cURL
cURL
Step 3: Redirect customers to Tazapay checkout
Calling the checkout API in Step 2 provides the following response. Redirect the customer to Tazapay’s hosted payment page using the URL.JSON
Step 4: Handle post-payment events
Tazapay sends events to your webhook endpoint to notify you about changes in the Checkout Session status. Set up a webhook endpoint to handle events like checkout.paid.Related Links:
- List of checkout events
- List of payment attempt events
- Configuring your webhook endpoint on the Tazapay dashboard
Customisation and Configuration
You can configure the appearance and behaviour of the Checkout PageLogo
You can add your logo to the Checkout PageRelated Guide: Adding logo to the Checkout Page
Transaction Description
You can add a transaction description to display to the customer on the Checkout Page. This is typically the description of the goods / services the merchant is paying for. Pass appropriate values in thetransaction_description field in the checkout API.