PAYON Payment Gateway
  • Table of Contents
  • Revision History
  • How is Work
    • PAYON PG PAYMENT
      • PAYON's Wallet Payment via PAYON Mobile App
      • PAYON Payment via PAYON's Card
      • CREDIT/DEBIT Online Payment
      • PPCBank Mobile Pay via PPCBank Mobile App(Coming Soon)
      • KHQR Online Payment
      • Binding Payment via PAYON's Card
      • Binding Payment via Credit/Debit's Card
  • PayOn PG Overview
    • Desktop Views
      • PAYON Payment Method
        • PAYON Card Payment
        • PAYON QR Payment
      • Credit/Debit Payment
      • KHQR Payment
      • PPCBank Payment
    • Mobile Views
      • PAYON Payment Method
      • Credit/Debit Payment Method
      • KHQR Payment
        • Bakong APP
        • PPCBank App
        • Other Bank App
      • PPCBank Payment
    • Obtain your API Keys
    • Platform Application Settings
  • Work flows
    • Payment Request Workflow
    • Page Redirection Workflow
  • Getting Started
    • Generate Checkout Link
    • Try redirect to Checkout Link
    • Test your payment
    • Add Card(Create Binding)
  • PAYON API Reference
    • Payment Order Registration
    • Cancellation Payment
    • Pre Auth Completion Payment
    • Refunds Payment
    • Transaction Orders History
    • Get Transaction Status
    • Push Back Notification
    • Create Binding
    • Get Binding List
    • Create Binding PIN
    • Enable / Disable PIN
    • Merchant Reconciliation
  • TEST Cards and Accounts
    • Test Card&Account
  • PAYON Library
  • PayOn Library
    • How to use PayOn Library
    • How to encrypt data with RSA
  • PAYON APPS
    • Environments
  • 3RD PARTY APPS
    • PPCBANK Environment
    • Bakong Environment
Powered by GitBook
On this page
  • Get Binding List
  • Example Request

Was this helpful?

  1. PAYON API Reference

Get Binding List

This method is used to obtain the list of existing binding for the customer via clientId.

Environment

URL

TEST

PRODUCTION

Get Binding List

POST {{URL}}/pg/bindingList

This endpoint allows you to all binding via clientId

Request Body

Name
Type
Description

merchantId

string

Merchant's Identification

termId

string

Terminal's Identification

clientId

string

Customer's Identification

{
    "resultMsg": "Success",
    "resultCode": "0000",
    "resultData": [
        {
            "txDt": "20210720",
            "txSeqNo": "2021072000006334",
            "merchantId": "C0000143",
            "termId": "CT03000003",
            "wdlAcNo": "101049******1245",
            "wdlExpiry": null,
            "wdlNm": "MC",
            "pin": "AwHmLIImBjwhZUTwjPgye3Vxq4JvLeV6eGjjO3hTCvu7uKo5hL99Gc4qdg3g+JvKPCnc2PhinZUFxuRAXST10G80hOFejomkzk2g61yO0lJvcA==",
            "clientId": "C0000143CT0300000304",
            "phone": "855964444781",
            "email": null,
            "bindingId": "a23e18a8-d837-4142-b30d-975db4818dfb",
            "encryptedAcNo": null,
            "encryptedCvv": null,
            "verifyYn": "Y",
            "paymentType": "01",
            "resultCode": null,
            "resultMsg": null
        },
        {
            "txDt": "20210720",
            "txSeqNo": "2021072000006351",
            "merchantId": "C0000143",
            "termId": "CT03000003",
            "wdlAcNo": "401200******1112",
            "wdlExpiry": "202712",
            "wdlNm": "MC",
            "pin": "AwHctBcdRsOLGEIg8pzx1pevZYtviS0CVHUkGSutKi7LlLHPME8TZnT6KRu8TFgTR5yNZOD/Dd6A2hh7lJD0F2OPcJcP9MgZ9udKrarOywlIAA==",
            "clientId": "C0000143CT0300000304",
            "phone": "855964444781",
            "email": null,
            "bindingId": "e3bc6d46-7cca-4a72-8b50-29e1ff2c067f",
            "encryptedAcNo": null,
            "encryptedCvv": null,
            "verifyYn": "Y",
            "paymentType": "02",
            "resultCode": null,
            "resultMsg": null
        }
    ]
}

Example Request

curl --location --request POST 'http://pgtest.payon.com.kh/pg/bindingList' \
--data-raw '{
    "merchantId":"C0000143",
    "termId":"CT03000003",
    "clientId":"04"

}'

POST /pg/bindingList HTTP/1.1
Host: pgtest.payon.com.kh
Content-Length: 80

{
    "merchantId":"C0000143",
    "termId":"CT03000003",
    "clientId":"04"

}htt

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('http://pgtest.payon.com.kh/pg/bindingList');
$request->setMethod(HTTP_Request2::METHOD_POST);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setBody('{\n    "merchantId":"C0000143",\n    "termId":"CT03000003",\n    "clientId":"04"\n\n}');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}
var settings = {
  "url": "http://pgtest.payon.com.kh/pg/bindingList",
  "method": "POST",
  "timeout": 0,
  "data": "{\n    \"merchantId\":\"C0000143\",\n    \"termId\":\"CT03000003\",\n    \"clientId\":\"04\"\n\n}",
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

var data = "{\n    \"merchantId\":\"C0000143\",\n    \"termId\":\"CT03000003\",\n    \"clientId\":\"04\"\n\n}";

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://pgtest.payon.com.kh/pg/bindingList");

xhr.send(data);j

PreviousCreate BindingNextCreate Binding PIN

Last updated 3 years ago

Was this helpful?

http://pgtest.payon.com.kh
https://pg.payon.com.kh