Paying Bills In Uganda
Collect Bills and Utilities via an API
The purpose of these methods is to make the process of utility payment efficient and effective from the paying Merchant side. This section contains all the possible transactional methods used to complete transactions and also query for transaction status.
NWSC Areas
This function is used to query for Areas allowed by NWSC.
Sample load
// Sample PHP pay Load
$live_url = "https://silicon-pay.com/get_areas";
$test_url = "https://silicon-pay.com/test/get_areas";
$data_req = [
"encryption_key"=>"XXXXXXXXXXX"
];
$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 => 'POST',
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 of the allowed areas shall be sent back.
[
{
"1": "entebbe"
},
{
"2": "iganga"
},
{
"3": "jinja"
},
{
"4": "kampala"
},
{
"5": "lugazi"
},
{
"6": "others"
}
]