Query PAY TV Providers

Collect Bills and Utilities via an API

This method is used to query for pay Tv Providers

Query Method

GET

Sample load


  // Sample PHP pay Load

  $live_url = "https://silicon-pay.com/get_pay_tv_providers";
  $test_url = "https://silicon-pay.com/test/get_pay_tv_providers";
  

  $data_req = [
"encryption_key"=>"XXXXXXXXXXXXX"
];

$curl = curl_init();

curl_setopt_array($curl, array(
  //Use live url ($live_url) when in production. 
  CURLOPT_URL => $test_url,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_POSTFIELDS =>json_encode($data_req),
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response

When all the payload parameters are correct, A json Response with the different billers name, short_codes and short_name shall be sent back.


{
"billers_name": [
"Azam Uganda",
"DSTV",
"Start Times Uganda",
"Zuku",
"Zuku TV",
"GOTV"
],
"short_name": [
"azam",
"mcubps",
"stu",
"zuku",
"zukutv",
"mcubps"
],
"short_code": [
"433",
"215",
"213",
"258",
"231",
"215-2"
]
}