POST api/Paymentgateway/result?api={api}
Ngân hàng VIETINBANK chủ động cập nhật trạng thái giao dịch
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| api |
Mã API do hệ thống cung cấp |
string |
Required |
Body Parameters
đối tượng phiếu thu
UpdateResultTransactionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| statusCode |
Mã code |
string |
None. |
| amount |
Số tiền thu |
decimal number |
None. |
| terminalId |
TerminalID của merchant |
string |
None. |
| bankTransactionId |
ID giao dịch |
string |
None. |
| requestId |
Số request id duy nhất từ hệ thống HIS gửi sang |
string |
None. |
| merchantName |
Tên merchant không dấu, do Ngân hàng cung cấp |
string |
None. |
| merchantId |
Mã merchant thanh toán, do Ngân hàng cung cấp |
string |
None. |
| transactionDate |
Thời hạn của QR = transTime + x(phút) Định dạng: yyyyMMddHHmmss |
string |
None. |
| orderId |
Mã đơn hàng sẽ được dùng như là key để query đơn hàng |
string |
None. |
| statusMessage |
Mã merchant thanh toán, do Ngân hàng cung cấp |
string |
None. |
| productId |
Product ID trong trường hợp QR sản phẩm. Mặc định: để trống |
string |
None. |
| signature |
Ngân hàng xác nhận không cần ký số nên trường này để trống |
string |
None. |
Request Formats
application/json, text/json
{
"statusCode": "sample string 1",
"amount": 1.1,
"terminalId": "sample string 2",
"bankTransactionId": "sample string 3",
"requestId": "sample string 4",
"merchantName": "sample string 5",
"merchantId": "sample string 6",
"transactionDate": "sample string 7",
"orderId": "sample string 8",
"statusMessage": "sample string 9",
"productId": "sample string 10",
"signature": "sample string 11"
}
application/xml, text/xml
<UpdateResultTransactionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiIVF.Models"> <amount>1.1</amount> <bankTransactionId>sample string 3</bankTransactionId> <merchantId>sample string 6</merchantId> <merchantName>sample string 5</merchantName> <orderId>sample string 8</orderId> <productId>sample string 10</productId> <requestId>sample string 4</requestId> <signature>sample string 11</signature> <statusCode>sample string 1</statusCode> <statusMessage>sample string 9</statusMessage> <terminalId>sample string 2</terminalId> <transactionDate>sample string 7</transactionDate> </UpdateResultTransactionModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ConfirmTransactionToBank| Name | Description | Type | Additional information |
|---|---|---|---|
| requestId |
mã phiếu thu |
string |
None. |
| paymentStatus |
Trạng thái |
string |
None. |
| signature |
Số request id duy nhất từ hệ thống HIS gửi sang |
string |
None. |
Response Formats
application/json, text/json
{
"requestId": "sample string 1",
"paymentStatus": "sample string 2",
"signature": "sample string 3"
}
application/xml, text/xml
<ConfirmTransactionToBank xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiIVF.Models"> <paymentStatus>sample string 2</paymentStatus> <requestId>sample string 1</requestId> <signature>sample string 3</signature> </ConfirmTransactionToBank>