@ekoindia/aeps-gateway-lib
v1.5.0
Published
A small Javascript library to integrate Eko's AePS Gateway solution into any website to enable Cash-Out
Downloads
13
Readme
Eko AePS Gateway Javascript Library
Javascript library to easily integrate Eko's AePS Gateway solution into a website
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();