-
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 #32 from om-ghimire/main
Update Vianet documentation
- Loading branch information
Showing
112 changed files
with
6,532 additions
and
447 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# Vianet | ||
|
||
## 1. Service Group Details API | ||
|
||
### URL | ||
`{{base_url}}/api/servicegroup/details/vianet-updated/` | ||
|
||
### Method | ||
`POST` | ||
|
||
### Request Payload | ||
<pre><code class="json"> | ||
{ | ||
"token": "token", | ||
"reference": "Unique reference", | ||
"customer_id": 110871 | ||
} | ||
</code></pre> | ||
|
||
### Success Response | ||
<pre><code class="json"> | ||
{ | ||
"status": true, | ||
"details": { | ||
"message": "Success", | ||
"amount": 27719, | ||
"policy_no": "63190031433", | ||
"customer_name": "Aayushma Malla", | ||
"product_name": "Child Endowment(Bal Umanga)", | ||
"interest_rate": "12.00", | ||
"loan_amount": "32000.00", | ||
"loan_date": "2023-02-02", | ||
"principal_amount": "27628.00", | ||
"request_id": "63190031433-2016", | ||
"interest": "91.00" | ||
}, | ||
"session_id": 12341 | ||
} | ||
</code></pre> | ||
|
||
### Error Response | ||
<pre><code class="json"> | ||
{ | ||
"status": false, | ||
"error_code": "7000", | ||
"message": "Unknown Error occured. Check details", | ||
"error": "unknown_error", | ||
"details": "You have no pending bills right now !!", | ||
"error_data": {}, | ||
"state": "Error" | ||
} | ||
</code></pre> | ||
|
||
--- | ||
|
||
## 2. Payment Commit API | ||
|
||
### URL | ||
`{{base_url}}/api/servicegroup/commit/vianet-updated/` | ||
|
||
### Method | ||
`POST` | ||
|
||
### Request Payload | ||
<pre><code class="json"> | ||
{ | ||
"token": "{{token}}", | ||
"session_id": "{{session_id}}", | ||
"payment_id": "{{payment_id}}", | ||
"amount": {{amount}}, | ||
"reference": "{{$guid}}" | ||
} | ||
</code></pre> | ||
|
||
### Success Response | ||
<pre><code class="json"> | ||
{ | ||
"status": true, | ||
"state": "Success", | ||
"message": "Successfully Completed Transaction", | ||
"extra_data": {}, | ||
"detail": { | ||
"message": "Payment Successfull! Thank you for using Online Payment Option" | ||
}, | ||
"credits_consumed": 277.98, | ||
"credits_available": 999006795.14, | ||
"id": 130144 | ||
} | ||
</code></pre> | ||
|
||
### Error Response | ||
<pre><code class="json"> | ||
{ | ||
"status": false, | ||
"error_code": "4000", | ||
"message": "Can't fulfill request", | ||
"error": "client_error", | ||
"details": "Payment seems to have already been Made!", | ||
"error_data": {}, | ||
"state": "Error" | ||
} | ||
</code></pre> |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
## **Change Log** | ||
**Version 7.1, Janaury 9th 2025** | ||
|
||
* Updated Vianet docs | ||
|
||
|
||
**Version 7.0, December 26 2024** | ||
|
||
|
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.