Make a payment transaction
POST/v2/payment
Execute a payment transaction using the previously created payment invoice (checkout). The token field in the payment request should contain the organization's token.
Request
Header Parameters
Send client_secret as a Bearer token
- application/json
Body
required
The entityId (client_id) and client_secret will be provided when registering as a merchant.
Organization code
Card token
Access token
Invoice ID for the transaction
IPv4 address of the device making the transaction
Алдааны мэдээлэл
Responses
- 200
Request Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [0
, 1
]
Indicates whether the request was successful
Possible values: [SUCCESS
, UNSUCCESS
, USER_PAYMENT_VERIFICATION_FAILED
, RISK_REJECT
, REGULATION_RESTRICTION
, PROCESS_FAIL
]
Description of the request status
ID of the paid invoice
Payment transaction ID
Payment request ID
Transaction amount
Organization code
Possible values: [ltxn
, wtxn
, db
]
Payment type
Date of the transaction
Transaction description (English)
Transaction description (Mongolian)
Алдааны мэдээлэл
[
{
"code": 1,
"description": "SUCCESS, PROCESS_FAIL,UNSUCCESS etc.",
"checkoutId": "HPS2403110000009",
"id": "26d07423-5733-44b3-9143-2ebb099f5bb5",
"initId": "26d07423-5733-44b3-9143-2ebb099f5bb5",
"amount": 1000.1,
"entityId": "songo.mn",
"paymentType": "ltxn",
"paymentDate": "2024-02-29T13:02:53.000Z",
"desc_en": "Transaction succeeded",
"desc_mn": "Гүйлгээ амжилттай боллоо",
"message": "invalid or missing entityId parameter"
}
]