question

avinash13 avatar image
avinash13 asked David Marginian answered

Getting 500 access denied to package on emulator

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()
}
Custom Tenders
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered

https://docs.clover.com/docs/creating-custom-tender-apps

The merchant r/w permissions mentioned there are not manifest permissions, they are permissions that you need to set on your app in the Clover dashboard.

We have an example app here - https://github.com/clover/android-examples/tree/master/extensibletenderexample.

You will need to uninstall/re-install your app via the Clover dashboard for the new permissions to work.

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community