Skip to content

ekoindia/aeps-gateway-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Twitter Follow Discord Chat


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>
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"
});

// 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

About

A small Javascript library to integrate Eko's AePS Gateway (Cashout) solution into any website.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •