Skip to content

Commit

Permalink
Updated Readme & example
Browse files Browse the repository at this point in the history
  • Loading branch information
manustays committed Dec 17, 2022
1 parent 11d4db2 commit a2c5730
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ Javascript library to easily integrate Eko's AePS Gateway solution into a websit
### 2. Setup AePS on page load
```html
<script>
var aeps = new EkoAEPSGateway();
const aeps = new EkoAEPSGateway();
// Configure your developer API details...
aeps.config({
"partner_name": "Example Company INC",
"initiator_logo_url": "https://example.com/my-logo.png",
"initiator_id": "9962981729",
"developer_key": "becbbce45f79c6f5109f848acd540567",
"secret_key": "y4aNr2cuSuaX2fCsfXMVopqvaZtx9MKHCcsF73fHxvc=",
"secret_key_timestamp": "1585999782835",
"user_code": "20810200",
"environment": "uat"
partner_name: "Example Company INC",
initiator_logo_url: "https://example.com/my-logo.png",
initiator_id: "9962981729",
developer_key: "becbbce45f79c6f5109f848acd540567",
secret_key: "y4aNr2cuSuaX2fCsfXMVopqvaZtx9MKHCcsF73fHxvc=",
secret_key_timestamp: "1585999782835",
user_code: "20810200",
environment: "uat"
});
// Configure callback URL for transaction-confirmation and for getting final result...
Expand Down
18 changes: 9 additions & 9 deletions example/basic_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ <H2>AePS Gateway</H2>
<button onClick="doAeps()">Open AePS Gateway</button>

<script>
var aeps = new EkoAEPSGateway();
const aeps = new EkoAEPSGateway();

aeps.config({
"partner_name": "Payments INC",
"initiator_logo_url": "https://files.eko.co.in/docs/logos/payment/dummy-partner-logo.png",
"initiator_id": "9962981729",
"developer_key": "becbbce45f79c6f5109f848acd540567",
"secret_key": "y4aNr2cuSuaX2fCsfXMVopqvaZtx9MKHCcsF73fHxvc=",
"secret_key_timestamp": "1585999782835",
"user_code": "20810200",
"environment": "uat"
partner_name: "Payments INC",
initiator_logo_url: "https://files.eko.co.in/docs/logos/payment/dummy-partner-logo.png",
initiator_id: "9962981729",
developer_key: "becbbce45f79c6f5109f848acd540567",
secret_key: "y4aNr2cuSuaX2fCsfXMVopqvaZtx9MKHCcsF73fHxvc=",
secret_key_timestamp: "1585999782835",
user_code: "20810200",
environment: "uat"
});

function doAeps() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ekoindia/aeps-gateway-lib",
"version": "1.5.1",
"version": "1.5.2",
"description": "A small Javascript library to integrate Eko's AePS Gateway solution into any website to enable Cash-Out",
"browser": "build/aeps-gateway-lib.js",
"main": "build/aeps-gateway-lib.js",
Expand Down

0 comments on commit a2c5730

Please sign in to comment.