Bank Payments
This API enables you to pay make payment to your bank of choice. Head over to the Bank Code List to see if your bank is supported and record its respective bankcode.
Creating a Bank Payment Request.
Request Body
Name
Type
Description
const axios = require('axios');
const data = {
amount: 10,
bankcode: "001",
accountNumber: "353353",
username: "username",
phone: "254722000000"
};
const config = {
headers: {
'Content-Type': 'application/json',
'Authorization': 'secret_key'
}
};
axios.post('https://api.rotsi.co.ke/payments/m2b/v1', data, config)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
Last updated