ONBOARDING MOBILE SDK

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.0.11) WITH FIR-FMR

https://docs.paysprint.in/matm/onboarding/LIVE/onboardinglib_live.v-1.0.11.aar

OLD LIVE MOBILE SDK (VERSION - 1.0.9)

https://docs.paysprint.in/matm/onboarding/LIVE/finalonboardinglib-release_v1_0_9.aar

πŸ“˜

DEPENDENCY

In build.gradle(app level) add below code :

multiDexEnabled true


//dependencies

implementation files('libs/onboard_uat_v1.0.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 "io.reactivex.rxjava2:rxandroid:2.0.1"
implementation 'com.google.code.gson:gson:2.5.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation "com.karumi:dexter:5.0.0"
implementation 'com.github.yalantis:ucrop:2.2.6-native'


In build.gradle add below code :

maven {
url "https://jitpack.io"
}

πŸ“˜

CALLING Intent

val intent = Intent(applicationContext, HostActivity::class.java)
intent.putExtra("pId", partnerId)
intent.putExtra("pApiKey", partnerKey)
intent.putExtra("mCode", "saura3") //merchant unique code and should not contain special character
intent.putExtra("mobile", "70429960") // merchant mobile no.
intent.putExtra("lat", "42.10")
intent.putExtra("lng", "76.00")
intent.putExtra("firm", "Test Telecom")
intent.putExtra("email", "[email protected]")
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivityForResult(intent, 999)

πŸ“˜

RESULT INTENT

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == 999) {
if (resultCode == Activity.RESULT_OK) {
val status = data?.getBooleanExtra("status", false)
val response = data?.getIntExtra("response", 0)
val message = data?.getStringExtra("message")

            val detailedResponse = "Status: $status,  " +
                    "Response: $response, " +
                    "Message: $message "
                Toast.makeText(applicationContext, detailedResponse, Toast.LENGTH_LONG).show()
            btnSubmit.snack(detailedResponse)
            Log.i(logTag, detailedResponse)
        }
    }
}

FOR ONBOARDING# If in your project minifyEnabled is enabled then add below code in your proguard rule.
-keep class com.paysprint.onboardinglib.*{ ; }