Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Amazon BillingNotSupported callback returned everytime #113

Open
jimitbhalani opened this issue Jun 19, 2016 · 1 comment
Open

Amazon BillingNotSupported callback returned everytime #113

jimitbhalani opened this issue Jun 19, 2016 · 1 comment

Comments

@jimitbhalani
Copy link

jimitbhalani commented Jun 19, 2016

I am using OpenIAB only for Amazon app store since was using Amazon IAP 1.0 and wanted to do an upgrade just for Amazon store to 2.0 (using prime31 api for android and ios billing services)

I was able to successfully integrate the OpenIAB api for my amazon platform and build the apk

I installed the App Tester and moved the json file from store to sd card. I can see list of all the IAP items on App Tester so that is working fine. However whenever I start the app, I am getting BIllingNotSupported failure callback returned

I do not request for product items with the queryInventory call unless the billing is a success. Am I doing this right? Below two callback listeners for billing

OpenIABEventManager.billingSupportedEvent += HandleBillingSupported;
OpenIABEventManager.billingNotSupportedEvent += HandleBillingNotSupported;

Also I am not sure if have to specifically mention any other option parameters for amazon for initialization

Here is my code for Initialization

        var options = new Options ();
        options.checkInventory = false;
        options.prefferedStoreNames = new string[] { OpenIAB_Android.STORE_AMAZON };
        options.availableStoreNames = new string[] { OpenIAB_Android.STORE_AMAZON };
        options.storeSearchStrategy = SearchStrategy.INSTALLER_THEN_BEST_FIT;
        OpenIAB.init (options);

        OpenIAB.enableDebugLogging (false);
#if DEVELOPMENT_BUILD
        OpenIAB.enableDebugLogging(true);
#endif

Is there anything wrong here? And is it fine I ignore the Billing failure callbacks? What is the importance of these callbacks if someone can explain, it would be great!

Also is there a specific guide for Unity integration?

Thank you

@jimitbhalani
Copy link
Author

I fixed the above by justing installing with command "adb install -i com.amazon.venezia /path/to/YourApp.apk"

I don't understand why we need "com.amazon.venezia" that? Do we have to have a similar approach while uploading the apk on amazon app store for production too?

I can now fetch the list of products and my app UI sees the in app products. However when I try to purchase it, it throws exception. I don't see the amazon tester in app purchase confirmation window. Anything that I could be missing here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant