I am creating custom tender for my application. I have created app on clover sandbox account with same package name as my application.
Permission in manifest
<uses-permission android:name="android.permission.MERCHANT_R" /> <uses-permission android:name="android.permission.MERCHANT_W" />
Sample Code:
try { Log.e(TAG, "Connecting custom Tender Connector") tenderConnector.connect() tenderConnector.checkAndCreateTender( getString(R.string.app_name), packageName, true, false) // initialization showToast("Tender Connected") } catch (exception: Exception) { Log.e(TAG, exception.message, exception.cause) showToast("${exception.message} : ${exception.cause}") }finally { Log.e(TAG, "Disconnecting custom Tender Connector") // showToast("Disconnecting custom Tender Connector") tenderConnector.disconnect() }