AFRICUNIA BANK REST JSON API Documentation
Merchant
To use AFRICUNIA BANK API, you need to register with us with merchant account. So that you can get Merchant Key and Secret
Authenticating Request
Pass the following with the header request made to the
mid: 'Your Merchant Id'
key: 'Your Merchant Key'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://africunia.com/api/processPayment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "{}",
CURLOPT_HTTPHEADER => array(
"key: Your Merchant Key",
"mid: Your Merchant ID"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Process Payment
Endpoint: https://africunia.com/api/processPayment
Parameter Description
Parameter | Required | Description |
---|---|---|
required | Instruct the API to determine user email for existance | |
amount | required | Specifies the amount |
currency | required | Currency of payment |
Response :
{"status":200,"PIN":9 Digit Code,"message":"OTP sent to your registered Email ID"}
1
Verify OTP
Endpoint: https://africunia.com/api/verifyOTP
Parameter Description
Parameter | Required | Description |
---|---|---|
required | Instruct the API to determine user email for existance | |
pin | required | Pin received from last API |
otp | required | OTP from the mail you received in last API |
Response :
{"status":200,"Transaction ID":"12 Digit Code","amount":"500.00","currency":USD,}
1
Transaction List
Endpoint: https://africunia.com/api/getTransactionList
Parameter Description
Parameter | Required | Description |
---|---|---|
required | Instruct the API to determine user email for existance |