-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from om-ghimire/main
Updated Service layer status
- Loading branch information
Showing
107 changed files
with
15,869 additions
and
6,387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# DLR Sample | ||
|
||
<pre><code class="json"> | ||
Content-Type: multipart/form-data | ||
{ | ||
"reference": "Unique id sent by you", | ||
"amount": "amount", | ||
"status": "status", | ||
"detail": "detail regarding the service", | ||
"response_id": "response id from ntc/ncell or other provider" | ||
} | ||
</code></pre> | ||
|
||
|
||
**NOTE ON FIELD VALIDATION** : Enforce a length of 50 alphanumeric characters as a default validation unless explicitly mentioned. | ||
|
||
## **Service Layer State** | ||
|
||
| HTTP Response Code | Status | act | Remarks | | ||
| :---- | :---- | :---- | :---- | | ||
| 200 | Success | Check state in response data and proceed based on state | Check state in response data and proceed based on state | | ||
| 400 | Error | Hold | Need to check the transaction state to proceed. | | ||
| 404 | Error | Refund | Service not found | | ||
| \>= 500 | Server error | Hold | Server is failed to provide the response **Third Party should hold the transaction and call lookup api after at least 5 mins to get transaction status to proceed further** | | ||
| Other any status code or No status code received | Timeout | Hold | Server is failed to provide the response **Third Party should hold the transaction and call lookup api after at least 5 mins to get transaction status to proceed further** | | ||
|
||
|
||
|
||
|
||
| State | Act | Description | | ||
| :---- | :---- | :---- | | ||
| Success | Process | Transaction Successful. **Deduct Client amount** | | ||
| Queued | Hold | Transaction in pending state. **Third Party should hold the transaction and call lookup api after at least after 5 mins to get transaction status to proceed further** | | ||
| Processing | Hold | Transaction in pending state. **Third Party should hold the transaction and call lookup api after atleast 5 mins to get transaction status to proceed further** | | ||
| Expired | Refund | Transaction not possible. **Refund client amount** | | ||
| Error | Refund | Transaction error. **Refund Client amount** | | ||
| Failed | Refund | Transaction Error. **Refund Client amount.** | | ||
| Any other state or no state received | Hold | Server is failed the provide the response **Third Party should hold the transaction and call lookup api after atleast 5 mins to get transaction status to proceed further** | | ||
| Timeout | Hold | **Third Party should hold the transaction and call lookup api after atleast 5 mins to get transaction status to proceed further** | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.