post https://integrations.getravenbank.com/v1/bet_account/pay
You can easily pay for your betting services using the Atlas API by passing in type
, customer_id
, name
, amount
and merchant_reference
as shown in the example below
Example Request
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'type': 'Bet9ja',
'customer_id': '14196892',
'name': 'JOHN DOE',
'amount': '500',
'merchant_reference': '123456'
});
var config = {
method: 'post',
url: 'http://localhost:4000/bet_account/pay',
headers: { },
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Example Response
{
"status": "success",
"message": "Bet payment successful",
"data": {
"name": "FIRSNAME LASTNAME",
"reference": "202208231834DACEGEI",
"merchant_reference": "123456",
"amount": "500.00",
"customer_id": "14196892",
"type": "Bet9ja"
}
}