2024-10-20 02:03:02 +05:00
2024-10-19 04:23:52 +05:00
2024-10-19 03:03:01 +05:00
2024-10-20 00:59:53 +05:00
2024-10-18 03:02:09 +05:00
2024-10-19 03:47:13 +05:00
2024-10-20 01:41:57 +05:00
2024-10-20 00:59:28 +05:00

Maldives Islamic Bank Payment Verification API

Here are example curl commands to test different scenarios:

  1. With both benefName and accountNo:
curl -X POST http://localhost:5000/verify-payment \
     -H "Content-Type: application/json" \
     -d '{
           "benefName": "ABDLA.MAJUDHU AHMED",
           "accountNo": "90103101178641000",
           "absAmount": "100",
           "time": "2024-10-16 16:08"
         }'

In this request, it will first try to verify with benfName, if it fails, then it will try with accountNo.

  1. With only benefName:
curl -X POST http://localhost:5000/verify-payment \
     -H "Content-Type: application/json" \
     -d '{
           "benefName": "ABDLA.MAJUDHU AHMED",
           "absAmount": "100",
           "time": "2024-10-16 16:08"
         }'
  1. With only accountNo:
curl -X POST http://localhost:5000/verify-payment \
     -H "Content-Type: application/json" \
     -d '{
           "accountNo": "90103101178641000",
           "absAmount": "100",
           "time": "2024-10-16 16:08"
         }'

Exmaple Succcess responses;

  1. Both benefName and accountNo or only benefName provided
{
  "message": "Payment verified using beneficiary name",
  "success": true
}
  1. Both benefName and accountNo or only accountNo provided, but failed with benefName
{
  "message": "Payment verified using account number",
  "success": true
}

Example Failed response: 1.

{
  "message": "Transaction not found, contact support",
  "success": false
}
Description
API to verify MIB and BML (Favara) transactions to MIB account.
Readme 1.1 MiB
Languages
Python 81.7%
Shell 13.1%
Dockerfile 5.2%