Payment Confirmation
This operation is to confirm the payment.
Implemented by: EDC Payment Gateway · Called by: Partner bank
Operation
| Description |
Value |
| URL |
https://edc-sit-api.oone.bz/pg-bank-api/payment/confirm/v3 |
| Method |
POST |
| Key |
Value |
Remark |
| Accept |
application/json |
|
| Content-Type |
application/json |
|
| Authorization |
Bearer |
Will provide privately |
Request Payload
| Field |
Type |
Required |
Remark |
biller_code |
string |
Yes |
Biller prefix code |
consumer_code |
string |
Yes |
Consumer code |
currency |
string |
Yes |
Currency code (ISO 4217) |
total_amount |
decimal |
Yes |
Total amount to pay |
convenience_fee_amount |
decimal |
No |
Bank transaction fee charge (Consumer pay the fee) |
sponsor_fee_amount |
decimal |
No |
Bank transaction fee charge (Biller pay the fee) |
payment_token |
string |
Yes |
Value of "payment_token" from Balance Inquiry or Balance Validation |
bank_ref |
string |
Yes |
Payment reference number from bank |
bank_channel |
string |
No |
Payment channel of the bank that consumer use to process the payment (Free text field) MobileBanking IBanking BankCounter BankAgent ATM |
bank_transaction_date |
string |
Yes |
Transaction date from bank (yyyy-MM-dd HH:mm:ss) |
payer_account_no |
string |
No |
Account number of the payer |
payer_account_name |
string |
No |
Account name of the payer |
payer_account_phone |
string |
No |
Phone number of the payer |
description |
string |
No |
Remark that related to the transaction from bank |
Example Request Payload
{
"biller_code": "EDC",
"consumer_code": "80581211",
"currency": "KHR",
"total_amount": 100000.00,
"convenience_fee_amount": 0.00,
"sponsor_fee_amount": 0.00,
"payment_token": "4be8fc1f50834aacb5c46005501cda8b...",
"bank_ref": "9040326182",
"bank_channel": "MobileBanking",
"bank_transaction_date": "2022-09-20 16:58:48",
"payer_account_no": "*****452",
"payer_account_name": "Chea Sopheap",
"payer_account_phone": "010888999",
"description": ""
}
Response Payload
| Field |
Type |
Remark |
code |
string |
Response code |
message |
string |
Response message in English |
message_kh |
string |
Response message in Khmer |
data |
json |
Data object |
Response Payload for "data"
| Field |
Type |
Remark |
biller_code |
string |
Biller prefix code |
biller_name |
string |
Biller name |
company_code |
string |
Company code |
company_name |
string |
Company name |
consumer_code |
string |
Consumer code |
consumer_name |
string |
Consumer name |
consumer_name_latin |
string |
Consumer name in Latin |
currency |
string |
Currency code (ISO 4217) |
total_amount |
decimal |
Total amount to pay |
bill_amount |
decimal |
Bill amount |
convenience_fee_amount |
decimal |
Transaction fee will pay by consumer |
sponsor_fee_amount |
decimal |
Transaction fee will pay by biller |
bank_ref |
string |
Payment reference number from bank |
transaction_ref |
string |
Payment reference number from EDC |
transaction_date |
string |
Payment date |
Example Response Payload
{
"code": "000",
"message": "",
"message_kh": "",
"data": {
"biller_code": "EDC",
"biller_name": "Electricite Due Cambodge",
"company_code": "EDC-BTB",
"company_name": "អគ្គិសនីបាត់ដំបង",
"consumer_code": "80581211",
"consumer_name": "លោក ជា សំណាង",
"consumer_name_latin": "Mr. Chea Samnang",
"currency": "KHR",
"total_amount": 100000.00,
"bill_amount": 100000.00,
"convenience_fee_amount": 0.00,
"sponsor_fee_amount": 0.00,
"bank_ref": "9040326182",
"transaction_ref": "174952172035635",
"transaction_date": "2021-12-07T09:25:30"
}
}