This API endpoint completes the checkout session once the PIN is verified.
Where to getpinToken
The token is created from
userId
and user’spin
.
const crypto = require('crypto');
const getPinToken = (userId, pin) => {
return crypto.createHash('sha256').update(`${pin}${userId}`).digest('hex');
}
Related guide(s): Capture method, Retrieve all payment methods of a user, How payment intents work and Payment intent status.
Successful response payload data
Parameter | Data type | Description |
---|---|---|
|
| The merchant ID of a particular merchant. |
|
| The partner’s This key is provided during the onboarding process. |
|
| A unique string to reference the checkout transaction. This can be an order ID, a cart ID, or something similar generated by the merchant’s side. |
|
| The name of service which initiated the checkout flow. |
|
| 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 which is the default value. |
|
| The payment method for this session. |
|
| The family the payment method belongs to. |
|
| The payment method type. |
|
| The payment method brand. |
|
| An object to store additional information about the transaction (e.g., order details, etc.). |
|
| Stores an array of items that is included in the transaction. |
|
| Name and description of the item. |
|
| Item variation. |
|
| The price per item. |
|
| 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. |
|
| ⚠️Required for Third-Party Acquirers This will be used to display on our checkout page and e-receipt. |
|
| The name of partner's merchant. |
|
| The partner's merchant's ID provided by partners. |
|
| The ID of the checkout session. |
|
| Additional information about the payment method. |
|
| The ID of the payment method used. This ID is the |
|
| The ID of the user. |
|
| Indicates the service that processes the payment intent. |
|
| 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. |
|
| After this time, the session will expire. It is 900000 ms after creating a session. |
|
| Displays the error that is returned by the Setel server. |
|
| The status of the session. |
|
| The time the checkout session was created. |
|
| The time the checkout session was last updated. |