Get https://mybundlepay.com/ng/api/transaction/{tx_ref}
HEADERS
Authorization* string
Pass your {secret_key} as a bearer token in the request header to authorize this call
PATH PARAMS
tx_ref* string
Transaction reference
< ?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://mybundlepay.com/ng/api/verify-payment/{tx_ref}",
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_HTTPHEADER => array(
"Accept: application/json",
"Content-Type: application/json",
"Authorization: Bearer {secret_key}"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
var axios = require('axios');
var config = {
method: 'post',
url: 'https://mybundlepay.com/ng/api/v1/issuing/cards/61a2d700-60e4-4211-983e-2b2da5536853',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer {secret_key}'
},
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
});
{
"message": "Payment details",
"status": "success",
"data": {
"id": "05b76082-e6be-4d8c-9a36-997b15f37e1b",
"first_name": "John",
"last_name": "Doe",
"email": "yourmail@example.com",
"currency": "USD",
"amount": "100",
"charge": "0.44",
"mode": "test",
"type": "API",
"status": "success",
"reference": "20193542126",
"tx_ref": "2346vrcdssdadffx",
"customization": {
"title": "Test Payment",
"description": "Payment Description",
"logo": "https://logo.png"
},
"meta": {
"uuid": "uuid",
"response": "Response"
},
"created_at": "2022-01-12T10:43:09.000000Z",
"updated_at": "2022-01-12T10:43:09.000000Z"
}
}