const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
currency: 'MWK',
country: 'MW',
amount: 100,
mobile: {number: '+265123456789', provider: 'Airtel Money'},
paymentMethod: 'MOBILE_MONEY'
})
};
fetch('https://sandboxapi.me-cash.com/v1/funding', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));