1. Home
  2. Docs
  3. API GUIDE
  4. 4. Upload KYC

4. Upload KYC

Print

To upload KYC, merchant is required to pass the following information:

  • URL: https://payment.brisktrex.com/uploadDoc
  • method: CURL_POST
  • parameters:
    • merchant_code – merchant code [mandatory]
    • document – document file to upload [mandatory]

Example:

$post = array(
    'merchant_code' => $_POST['merchant_code'],
    'document'      =>  $_FILES['document']
);
$fields_string = http_build_query($post);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://payment.brisktrex.com/uploadDoc");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);

echo $result;

$result = {"status":1,"message":"success"}

After upload processing, merchant will receive below response from edxaPay:

  • parameters
    • status – registration status
      • 0 – failed
      • 1 – success
    • message – message of upload status