1.5.0 • Published 4 years ago

@ekoindia/aeps-gateway-lib v1.5.0

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

Eko AePS Gateway Javascript Library

Javascript library to easily integrate Eko's AePS Gateway solution into a website

GitHub issues npm (scoped) npm bundle size (minified) dependencies GitHub license Eko.in Twitter Follow


Installation

npm install -S @ekoindia/aeps-gateway-lib

Usage

1. Include Library

<script src="node_modules/@ekoindia/aeps-gateway-lib.js"></script>

2. Setup AePS on page load

<script>
var 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');
</script>

3. Open AePS Popup whenever needed (ex: on a button click)

aeps.open();

Code Examples

  1. Basic Example
1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago