AEPS Integration SDK V2 Mobile
AEPS Integration SDK V2 Mobile
1) Introduction
Bankit Provides AEPS SDK for integration our services in your android app. After the integration you can easily
consume transactions (Cash withdrawal, Balance Enquiry).
2) SDK Requirements
You need agent_id,developer_id,password,bankVendorType in order to use this sdk. That will be provided by
Bankit Team.
bankVendorType can be ICICI or FINO And YES
3) Screenshots from SDK
4)
5) Integration Steps.
A) // ADD Library inside your libs folder in your project (aepslib,aar)
You can download our latest sdk from the following drive url.
https://drive.google.com/drive/folders/13eJneS111KDSiS4-kiOJyZso9j0LviH1?usp=sharing
C) // ADD code inside your activity on button click where you want to start the transactions aka AEPS SDK
Please check Agent have done KYC before or not by using the given API(Only for YES BANK and ICICI Bank)
Response
{"icicionboardstatus":"1","finoonboardstatus":"1","yesonboardstatus":"1","status":"00"
}
If you get yesonboardstatus =“1” then you can go for your transaction activity .
EKYC YES BANK
Intent i = new Intent(MainActivity.this, EKYCActivity.class);
i.putExtra("agent_id", agent_id.getText().toString());
i.putExtra("developer_id", developer_id.getText().toString());
i.putExtra("password", password.getText().toString());
i.putExtra("mobile", "");Mandatory
i.putExtra("aadhaar", "");Mandatory
i.putExtra("email", "");Mandatory
i.putExtra("pan", "");Mandatory
i.putExtra("primary_color", R.color.colorAccent);
i.putExtra("accent_color", R.color.colorAccent);
i.putExtra("primary_dark_color", R.color.colorPrimaryDark);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivityForResult(i, 400);
If you get icicionboardstatus =“1” then you can go for your transaction activity .
EKYC ICICI BANK
Intent i = new Intent(MainActivity.this, ICICIEKYCActivity.class);
i.putExtra("agent_id", agent_id.getText().toString());
i.putExtra("developer_id", developer_id.getText().toString());
i.putExtra("password", password.getText().toString());
i.putExtra("primary_color", R.color.colorPrimary);
i.putExtra("accent_color", R.color.colorAccent);
i.putExtra("primary_dark_color", R.color.colorPrimaryDark);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivityForResult(i, 400);
startActivityForResult(i, 300);
Note:In order to get agent_id,developer_id,password you have to revert this mail and request for the same
}
return AgentTranID;
}
E) After the Transactions you will be back on your screen with response from AEPS sdk.
That response can be consumed and fetched from OnActivityResult it will be consumed as
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
String message="",status="";
if(data!=null){
message = data.getStringExtra("message");
status = data.getStringExtra("statusCode");
}
} catch (JSONException e) {
e.printStackTrace();
}
} else if (requestCode == 400 && resultCode == RESULT_OK) {
showAlertDialog(message + " " + status);
} else{
if (resultCode == RESULT_CANCELED) {
if (!message.equalsIgnoreCase("")) {
try {
showAlertDialog(message);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
7) Developers Support
Release notes
Changes to be done if Using ICICI Ekyc SDK is using.
Add implementation 'com.intuit.sdp:sdp-android:1.0.6' in dependencies