Build With MyBundlePay
One integration for payments, cards, bills and payouts.
MyBundlePay gives developers a clean payment gateway, virtual account funding, payout rails, card issuing tools, bill payments, webhooks and merchant-ready checkout experiences.
REST APIs
JSON based
Webhooks
Real time events
Sandbox
Test first
API Test Console
Test the current endpoint directly from the documentation. Secret keys stay inside this browser session.
Enter your test key, review the sample body for this page, then send a request.
API Documentation for NG Banks Functionality
This documentation provides step-by-step guidance for developers to integrate functionalities for fetching banks using PHP cURL or NodeJs. Each section includes the method, endpoint, request parameters, and sample responses.
GET https://mybundlepay.com/ng/api/banks
HEADERS
Authorization* string
Pass your {secret_key} as a bearer token in the request header to authorize this call
Accept application/json
< ?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://mybundlepay.com/ng/api/banks");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer {secret_key}',
'Accept: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
const axios = require('axios');
const url = 'https://mybundlepay.com/ng/api/banks';
const apiKey = '{secret_key}'; // Replace with your actual API key
axios.get(url, {
headers: {
'Authorization': `Bearer ${apiKey}`,
'Accept': 'application/json'
}
})
.then(response => {
console.log(response.data); // Prints the response data
})
.catch(error => {
console.error('Error:', error); // Handles any error that occurs during the request
});
Response
{
"status": "success",
"data": [
{
"bank_code": "001",
"name": "First Bank of Nigeria"
},
{
"bank_code": "002",
"name": "Access Bank"
}
]
}