update docs for cleaner transaction output

This commit is contained in:
Shihaam Abdul Rahman 2024-12-09 08:25:51 +05:00
parent c91a4c06fd
commit 867b32e45e
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -68,17 +68,27 @@ curl -X POST http://localhost:5000/verify-payment \
```json ```json
{ {
"message": "Payment verified using beneficiary name", "message": "Payment verified using beneficiary name",
"success": true "success": true,
"transaction": {
"ref": "MALBIPS20241208190231 HBTLGAKCNUS",
"sourceBank": "BML",
"trxDate": "2024-12-09 00:02:36"
}
} }
``` ```
2. Both benefName and accountNo or only accountNo provided, but failed with benefName 2. Both benefName and accountNo or only accountNo provided, but failed with benefName
```json ```json
{ {
"message": "Payment verified using account number", "message": "Payment verified using account number",
"success": true "success": true,
"transaction": {
"ref": "1-77722758-34140519-1",
"sourceBank": "MIB",
"trxDate": "2024-12-05 12:57:32"
}
} }
``` ```
## Example Failed response: ## Example Failed response:
1. If transaction is not found with the provided details. 1. If transaction is not found with the provided details.
```json ```json