Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ekoindia/aeps-gateway-lib
A small Javascript library to integrate Eko's AePS Gateway (Cashout) solution into any website.
https://github.com/ekoindia/aeps-gateway-lib
aeps aeps-gateway-lib cashout eko javascript-library npci
Last synced: 1 day ago
JSON representation
A small Javascript library to integrate Eko's AePS Gateway (Cashout) solution into any website.
- Host: GitHub
- URL: https://github.com/ekoindia/aeps-gateway-lib
- Owner: ekoindia
- License: mit
- Created: 2020-04-01T16:11:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T01:58:56.000Z (almost 2 years ago)
- Last Synced: 2023-03-23T05:12:02.454Z (over 1 year ago)
- Topics: aeps, aeps-gateway-lib, cashout, eko, javascript-library, npci
- Language: JavaScript
- Homepage: https://developers.eko.in/docs/aeps
- Size: 825 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Eko AePS Gateway Javascript Library
Javascript library to easily integrate Eko's AePS Gateway solution into a website[![GitHub issues](https://img.shields.io/github/issues/ekoindia/aeps-gateway-lib)](https://github.com/ekoindia/aeps-gateway-lib/issues) [![npm (scoped)](https://img.shields.io/npm/v/@ekoindia/aeps-gateway-lib)](https://www.npmjs.com/package/@ekoindia/aeps-gateway-lib) [![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@ekoindia/aeps-gateway-lib)](https://github.com/ekoindia/aeps-gateway-lib) ![dependencies](https://img.shields.io/badge/dependencies-0-green) [![GitHub license](https://img.shields.io/github/license/ekoindia/aeps-gateway-lib)](https://github.com/ekoindia/aeps-gateway-lib/blob/master/LICENSE)
![Eko.in](https://img.shields.io/badge/Develop%20with-Eko.in-brightgreen)
![Twitter Follow](https://img.shields.io/twitter/follow/ekospeaks?label=Follow&style=social)
![Discord Chat](https://img.shields.io/discord/1038006952573292574)---
## Installation
`npm install -S @ekoindia/aeps-gateway-lib`
## Usage
### 1. Include Library
```html```
### 2. Setup AePS on page load
```htmlconst 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"
});// Configure callback URL for transaction-confirmation and for getting final result...
aeps.setCallbackURL('https://example.com/aeps/callback');```
### 3. Open AePS Popup whenever needed (ex: on a button click)
```javascript
aeps.open();
```## Code Examples
1. [Basic Example](/example/basic_example.html)