Javascript library to easily integrate Eko's AePS Gateway solution into a website
npm install -S @ekoindia/aeps-gateway-lib
<script src="node_modules/@ekoindia/aeps-gateway-lib.js"></script>
<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>
aeps.open();