SDK Integration Steps

Steps to Integrate Web Application with JavaScript SDK.

Step-1: Include JS and CSS file in header section.

Step-2: Client Id, Client Secret, Client Ref Id, apiusername, pagename, isreceipt variables to be initialized and callbackurl is to call the values.

Step-3:Enable location on your browser.

Step-4:Finally initialize SDK.

Step-5:This is to be added in the page in-order to return back to the initial page after a transaction and perform different transactions according to your requirements.

NOTE: The above content for integration are available in index.html page i.e. the zip file shared with you. And clientrefid value should be unique for each transaction.

Pass the client id and client secret into the script with the property name along with the other options.

client_id = "";
client_secret = "";
client_ref_id = '1234';
API user_name = 'isutest';
(NOTE: Change the values as per your data)

Note: The above mentioned client_id and client_secret has to be provided for effective usage.

Sample data are passed through code.



var client_id = "";
var client_secret = "";
var client_ref_id = '1234';
var user_name = 'isutest';
isuSDK("#aeps").open ({ closeButton: true, title: "UAEPS SDK", className: "zoom-and-spin", client_id: client_id, client_secret: client_secret, client_ref_id: client_ref_id, user_name: user_name, paramA: "", paramB: "", paramC: "" });
function refresh()
{
window.location.reload(true);
}

Note: Add script tag in the above code.