Skip to content

Payment Confirm

EDC Payment Gateway will request to this operation to confirm the payment when consumer has new bill.

Implemented by: Partner bank · Called by: EDC Payment Gateway

Payment flow

Operation

Description Value
URL https://{domain}/directdebit/payment/confirm
Method POST

Headers

Key Value Remark
Accept application/json
Content-Type application/json
Authorization Bearer Token from payment authorize

Request Payload

Field Type Required Remark
currency string Yes Currency code (ISO 4217)
transaction_amount float Yes Bill amount
transaction_ref string Yes Biller transaction reference number
subscribe_token string Yes Subscribe token
company_code string Yes Company code
company_name string Yes Company name

Example Request Payload

{
    "currency": "KHR",
    "transaction_amount": 100000,
    "transaction_ref": "2714902590000102001",
    "subscribe_token": "...Wk83giJmm3zQEqCoNUGXRUe+I5U7mSd0CCCGRa70aBw==",
    "company_code": "EDC-BTB",
    "company_name": "អគ្គិសនីបាត់ដំបង"
}

Response Payload

Field Type Remark
code string Response code
status string Response status
message string Response message
transaction_id string Transaction ID at bank side
transaction_date string Transaction date
convenience_fee_amount decimal Bank transaction fee charge (Consumer pay the fee)
sponsor_fee_amount decimal Bank transaction fee charge (Biller pay the fee)

Example Response Payload

{
    "code": "000",
    "status": "Success",
    "message": "Transaction successfully.",
    "transaction_id": "FT2120805B9YG4S6",
    "transaction_date": "2022-02-20 15:30:12.000",
    "convenience_fee_amount": 0.00,
    "sponsor_fee_amount": 0.00
}