Steps:
1: In your application Add code sinpet in manifest:
<queries>
<package android:name="com.payment.sdk" />
</queries>
2:In main Activity call SDK and pass parameters code snipet below:
startApplication("com.payment.
fun startApplication(packageName: String) {
try {
val intent = Intent("android.intent.action.
intent.addCategory("
intent.addFlags(
val resolveInfoList = packageManager.
for (info in resolveInfoList) if (info.activityInfo.
packageName, ignoreCase = true)) {
launchComponent(
return
}
// No match, so application is not installed
showInMarket(
} catch (e: Exception) {
showInMarket(
}
}
private fun launchComponent(packageName: String, name: String) {
val bundle = Bundle()
bundle.putString("
bundle.putString("
bundle.putString("orderID"
bundle.putString("mobile",
bundle.putString("
bundle.putString("
//pax/morefun
bundle.putString("
bundle.putString("
bundle.putString("sdkKey",
val intent = Intent("android.intent.action.
intent.addCategory("
intent.component = ComponentName(packageName, name)
intent.putExtras(bundle)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
startActivity(intent)
}
private fun showInMarket(packageName: String) {
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("market://details?
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
startActivity(intent)
}