First implement Onboarding transaction callback at api partner end.,and then implement Mobile sdk
SDK use Color Codes implemented in the partner App
SDK use Name implemented in the partner App
DEMO CODE FOR INTERATION
https://docs.paysprint.in/matm/onboarding/UATSDK/OnBoardingdemoapp.zip
UAT MOBILE SDK
https://docs.paysprint.in/matm/onboarding/UATSDK/onboard_uat_v2.0.aar
UPDATED LIVE MOBILE SDK (VERSION - 1.1.14) with storage permission fix
<https://docs.paysprint.in/matm/onboarding/LIVE/onboardinglib_V.1.1.14.aar>
DEPENDENCY
In build.gradle(app level) add below code :
multiDexEnabled true //dependencies implementation(files("libs/Paysprint_onboardinglib_uat_release.aar")) implementation ("com.squareup.retrofit2:retrofit:2.9.0") implementation ("com.squareup.retrofit2:adapter-rxjava2:2.3.0") implementation ("com.squareup.retrofit2:converter-gson:2.9.0") implementation ("com.google.code.gson:gson:2.8.2") implementation("com.squareup.okhttp3:okhttp") implementation("com.squareup.okhttp3:logging-interceptor") implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
In build.gradle add below code :maven {
url "https://jitpack.io"
}
CALLING Intent
val intent = Intent(applicationContext, HostActivity::class.java) intent.putExtra("pId", "PS001")//partner Id provided in credential intent.putExtra("pApiKey", "UFMwMDEyNGQ2NTliODUzYmViM2I1OWRjMDc2YWNhMTE2M2I1NQ==")//JWT API Key provided in credential Intent intent = new Intent(MainActivity.this, HostActivity.class); intent.putExtra("pId", "PS001707"); intent.putExtra("pApiKey", "UFMwMDE3MDcxZDE2ODM4N2FjOWQyNTQwYzk2NTJiYTE3OTZmNDY4Zg=="); intent.putExtra("mCode", "101196"); intent.putExtra("mobile", "9992212477"); intent.putExtra("lat", "41.10"); intent.putExtra("pipe", "1"); intent.putExtra("lng", "76.00"); intent.putExtra("firm", "Ananya Finance"); intent.putExtra("email", "[email protected]"); intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); startActivityForResult(intent, 1111);
RESULT INTENT
@Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == 1111) { if (resultCode == Activity.RESULT_OK) { boolean status = data.getBooleanExtra("status", false); int response = data.getIntExtra("response", 0); String message = data.getStringExtra("message"); String detailedResponse = "Status: " +status+ "\n\nResponse: " +response+ "\n\nMessage: "+message; //Toast.makeText(this, "" + detailedResponse, Toast.LENGTH_SHORT).show(); new AlertDialog.Builder(this) .setMessage(detailedResponse) .show(); } } }
FOR ONBOARDING# If in your project minifyEnabled is enabled then add below code in your proguard rule.
-keep class com.paysprint.onboardinglib.*{ ; }