mib-payment-verify/README.md

39 lines
1.0 KiB
Markdown
Raw Normal View History

2024-10-19 03:11:52 +05:00
2024-10-20 01:33:33 +05:00
Here are example curl commands to test different scenarios:
2024-10-19 03:11:52 +05:00
2024-10-20 01:33:33 +05:00
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.
2. 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"
}'
```
3. With only accountNo:
2024-10-19 03:11:52 +05:00
```
curl -X POST http://localhost:5000/verify-payment \
-H "Content-Type: application/json" \
-d '{
2024-10-20 01:33:33 +05:00
"accountNo": "90103101178641000",
2024-10-19 03:11:52 +05:00
"absAmount": "100",
2024-10-20 01:33:33 +05:00
"time": "2024-10-16 16:08"
2024-10-19 03:11:52 +05:00
}'
```