Update Readme
This commit is contained in:
parent
16a226393f
commit
48bf3b864b
31
README.md
31
README.md
@ -1,13 +1,38 @@
|
|||||||
|
|
||||||
|
|
||||||
exmaple request
|
Here are example curl commands to test different scenarios:
|
||||||
|
|
||||||
|
|
||||||
|
1. With both benefName and accountNo:
|
||||||
```
|
```
|
||||||
curl -X POST http://localhost:5000/verify-payment \
|
curl -X POST http://localhost:5000/verify-payment \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"benefName": "MAEESHa MOHAMED",
|
"benefName": "ABDLA.MAJUDHU AHMED",
|
||||||
|
"accountNo": "90103101178641000",
|
||||||
"absAmount": "100",
|
"absAmount": "100",
|
||||||
"time": "2024-10-16 15:55"
|
"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:
|
||||||
|
```
|
||||||
|
curl -X POST http://localhost:5000/verify-payment \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d '{
|
||||||
|
"accountNo": "90103101178641000",
|
||||||
|
"absAmount": "100",
|
||||||
|
"time": "2024-10-16 16:08"
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user