3e8dbb59317860704544593991ee408c27fc2fbe
				
			
			
		
	Maldives Islamic Bank Payment Verification API
Here are example curl commands to test different scenarios:
- 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.
- 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"
         }'
- 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;
- Both benefName and accountNo or only benefName provided
 
{
  "message": "Payment verified using beneficiary name",
  "success": true
}
- 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
				
					Languages
				
				
								
								
									Python
								
								81.7%
							
						
							
								
								
									Shell
								
								13.1%
							
						
							
								
								
									Dockerfile
								
								5.2%