- Description: Confirm 3DS authentication is finished, last step of completing a payment
- Path:
/direct/complete-authentication
- Method:
POST
- Request Header:
Content-Type: application/json
Request Parameters
Parameter | Type | Required/optional | Description |
---|
merchantId | string | Required | Merchant identifier |
orderId | number | Required | Order identifier |
stan | string | Required | System trace audit number for the transaction |
Example:
{
"request": "{\"merchantId\":3,\"orderId\":4250,\"stan\":\"D1704\"}",
"signature": "CRUlepcZ8nxwTTZOJnJMDPhW+cXrtfbhH8ACieXyWyE5mLDQevc+rXD2lmRtk3Qf9Lj22Puh6LdzzcXlfNNZDuTz0EKoBmeZX7PVJDZLz4eJFeFgWnjMQ2g/mLKniKrUA1Q9L4K0znwDPx4nAH65zoUAON8XFqv9UKhEwY0cVbYddPfMaTl9+RMOda6FqVhVVJnDScFNFbBp+fzdcSDwlOpl7OcqouOHPOSg4AceIWLPfEY5R/wrJVmYFz/+9DGRMNkJrL1TQGhyFLY1Aehdxu3EGKWS/Va9w9GEZywY8jb6ryXif9e/lAUPH2Nv/OQ2T9HwN13yerWZJ0NWBEZzmg=="
}
Response Parameters
Parameter | Type | Required/optional | Description |
---|
responseCode | string | Required | Payment Gateway response code |
message | string | Required | Payment Gateway response message |
order | object | Required | |
order.id | number | Required | Order identifier |
order.merchantId | number | Required | Merchant identifier which own this order |
order.merchantReference | string | Required | Your reference for the order |
order.currency | string | Required | 3-Letters ISO currency code of the order |
order.amount | number | Required | Order amount |
order.netAmount | number | Required | Net amount of the order |
order.cardType | string | Required | Card type of the order |
order.createTime | datetime | Required | Timestamp when the order is created. Maintained by the Payment Gateway |
order.updateTime | datetime | Required | Timestamp when the order is last updated. Maintained by the Payment Gateway |
order.status | string | Required | Status of the order. Maintained by the Payment Gateway |
order.recurring | boolean | Required | Flags the order is a recurring order or not |
transaction | object | Required | |
transaction.id | number | Required | Transaction identifier for the recurring transaction |
transaction.merchantId | number | Required | Merchant identifier which own this transaction |
transaction.type | string | Required | Transaction type |
transaction.amount | number | Required | Transaction amount |
transaction.status | string | Required | Status of the transaction. Maintained by the Payment Gateway |
transaction.maskedPan | string | Required | Masked card number of the transaction if supported by the payment method |
transaction.stan | string | Required | System trace audit number for the transaction |
Example:
{
"responseCode": "0000",
"message": "Success",
"order": {
"id": 4250,
"merchantId": 3,
"merchantReference": "M20220627102712",
"currency": "HKD",
"amount": 100.00,
"netAmount": 100.00,
"cardType": "VISA",
"email": "",
"createTime": "2022-06-27T08:27:13.000+00:00",
"updateTime": "2022-07-14T03:05:39.107+00:00",
"status": "SUCCESS",
"recurring": false
},
"transaction": {
"id": 1704,
"merchantId": 3,
"type": "SALE",
"amount": 50.00,
"currency": "HKD",
"status": "SUCCESS",
"maskedPan": "400000XXXXXX0002",
"stan": "D1704"
}
}