implemented quick pay within bank

This commit is contained in:
2025-06-25 23:46:17 +05:30
parent d813784305
commit e3bd1657c0
14 changed files with 262 additions and 13 deletions

View File

@@ -0,0 +1,29 @@
const axios = require('axios');
async function transfer(
fromAccountNo,
toAccountNo,
toAccountType,
amount,
narration = 'tranfer from mobile'
) {
try {
const response = await axios.post(
'http://localhost:8689/kccb/Interbankfundtranfer',
{
fromAccountNo,
toAccountNo,
toAccountType,
amount,
narration,
}
);
return response.data;
} catch (error) {
throw new Error(
'API call failed: ' + (error.response?.data?.message || error.message)
);
}
}
module.exports = { transfer };