0% found this document useful (0 votes)
30 views

AEPS Integration SDK V2 Mobile

Uploaded by

bholejaiswal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

AEPS Integration SDK V2 Mobile

Uploaded by

bholejaiswal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

AEPS SDK INTEGRATION DOCUMENT

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

Cash Withdrawal Balance Enquiry

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

6) For Adding in Android App use

In Project Level Add


allprojects {
repositories {
flatDir {
dirs 'libs'
}
}
}

In Project Gradle Dependencies Add

Note:Make sure you migrated your android app to Android X

implementation (name:'aepslib', ext:'aar')


implementation 'androidx.room:room-runtime:2.0.0'
annotationProcessor 'androidx.room:room-compiler:2.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'

B) // ADD code inside your manifest.xml file


<activity android:name="com.aeps.aepslib.AepsActivity"android:screenOrientation="portrait"></activity>

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)

https://services.bankit.in:8443/AEPSAPI/customer/onboarddetails(This is a Get Api) and you have to pass below params in


header
Agent_id
Developer_id
Password

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

Balance Enquiry,Cash withdrawal,Mini statement

Intent i = new Intent(MainActivity.this, AepsActivity.class);


i.putExtra("agent_id", “”);
i.putExtra("developer_id",“”);
i.putExtra("password", “”);
i.putExtra("primary_color", R.color.colorPrimary);
i.putExtra("accent_color", R.color.colorAccent);
i.putExtra("primary_dark_color", R.color.colorPrimaryDark);
i.putExtra("clientTransactionId", createMultipleTransactionID());
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
i.putExtra("bankVendorType", “ICICI”);
Or
i.putExtra("bankVendorType", “FINO”);
Or
i.putExtra("bankVendorType", “YES”);

startActivityForResult(i, 300);
Note:In order to get agent_id,developer_id,password you have to revert this mail and request for the same

D) For createMultipleTransactionID() method use

public final String createMultipleTransactionID() {


String AgentTranID = "";
try {

SimpleDateFormat sdf = new SimpleDateFormat("yyMMddHHmmssSS");


Date date = new Date();
String tranID = sdf.format(date);
int n = 6;
Random randGen = new Random();
int startNum = (int) Math.pow(10, n - 1);
int range = (int) (Math.pow(10, n) - startNum);
int randomNum = randGen.nextInt(range) + startNum;
String ran = String.valueOf(randomNum);
AgentTranID = tranID + ran;
} catch (Throwable e) {

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

if (requestCode == 300 && resultCode == RESULT_OK) {


try {

JSONObject jsonTransactionJsonObject = new


JSONObject(data.getStringExtra("data"));
showAlertDialog(message + jsonTransactionJsonObject.optString("bankName") + "
" + jsonTransactionJsonObject.optString("bankrefrenceNo") + " " +
jsonTransactionJsonObject.optString("service") + " " +
jsonTransactionJsonObject.optString("stanNo") + " " +
jsonTransactionJsonObject.optString("transactionAmount") + " " +
jsonTransactionJsonObject.optString("transactionId") + " " +
jsonTransactionJsonObject.optString("transactionNO") + " " +
jsonTransactionJsonObject.optString("uidNo"));

} 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

Prateek sharma +91-9650269758

Saurabh Kumar +91-9654564864

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

You might also like