This API endpoint creates a checkout session for users to make payment for their purchases.
Alert
Please provide a unique
referenceId
to avoid multiple payments and for a successful reconciliation.
Related guide(s): How payment intents work, Payment intent status and Capture method.
Successful response payload data
Parameter name | Data type | Description |
---|---|---|
|
| The ID of the checkout session. |
|
| The unique identifier for the payment transaction. More information can be found in the How payment intents work page. |
|
| The current status of the payment intent. The full list of statuses can be found in the Payment intent status page. |
|
| The partner’s generated ID, which generated this transaction. |
|
| An identifier to determine the type of transaction or service related to this session. |
|
| The payment method used for this session. |
|
| The family the payment method belongs to. |
|
| The payment method type. |
|
| The payment method brand. |
|
| ⚠️ Required for third party acquirers This will be used to display on our checkout page and e-receipt. |
|
| The name of the partner's merchant. |
|
| The partner's merchant's ID provided by partners. |
|
| An identifier to see if the transaction is a captured transaction. More information can be found in the capture method page. |
|
| The total amount of all items after discounts and taxes. |
|
| The three-letter ISO currency code of the payment. Currently, only supports MYR. |
|
| An object to store additional information about the transaction (e.g: order details, etc.). |
|
| Name and description of the item. |
|
| Item variation. |
|
| The price per item. |
| integer | The number of items purchased. |
|
| Total price = item quantity x item unit price. |
|
| The total price after discount. |
|
| The total amount of discount given. |
|
| The total amount before applying any taxes or discount, fee, etc. |
|
| The shipping fee (applicable for e-commerce). |
|
| The code for the pump being operated. |
|
| The name of the station where the operating pump is located. |
|
| The ID of the customer. |
|
| The email of the customer. |
|
| The name of the customer. |
|
| Redirects to a URL when the customer finishes a session. |
|
| The URL to be redirected upon a successful checkout session. |
|
| The URL to be redirected upon the cancellation of the checkout session. |
|
| The webhook URL to send session information. |
|
| The URL that will receive updates about the checkout session. |
|
| Stores the name of the location/region. |
|
| Additional information about the order. |
|
| The time the checkout session was created. |
|
| The time the checkout session was last updated. |