{"action":"created","issue":{"url":"https://api.github.com/repos/onepf/OPFIab/issues/15","labels_url":"https://api.github.com/repos/onepf/OPFIab/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/onepf/OPFIab/issues/15/comments","events_url":"https://api.github.com/repos/onepf/OPFIab/issues/15/events","html_url":"https://github.com/onepf/OPFIab/issues/15","id":85069933,"number":15,"title":"Amazon - No Billing Provider","user":{"login":"jakubklos77","id":6850822,"avatar_url":"https://avatars.githubusercontent.com/u/6850822?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubklos77","html_url":"https://github.com/jakubklos77","followers_url":"https://api.github.com/users/jakubklos77/followers","following_url":"https://api.github.com/users/jakubklos77/following{/other_user}","gists_url":"https://api.github.com/users/jakubklos77/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubklos77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubklos77/subscriptions","organizations_url":"https://api.github.com/users/jakubklos77/orgs","repos_url":"https://api.github.com/users/jakubklos77/repos","events_url":"https://api.github.com/users/jakubklos77/events{/privacy}","received_events_url":"https://api.github.com/users/jakubklos77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-04T12:15:17Z","updated_at":"2015-06-05T06:23:36Z","closed_at":null,"body":"The library works properly with Google Play but not with the Amazon Store App.\r\nI have downloaded the latest Amazon App and tested with my app and also the Trivial Drive.\r\nThese are the logs and results:\r\n\r\n```\r\n06-04 13:13:05.774: D/d(2307): In App Purchasing SDK - Sandbox Mode: PurchasingListener registered: org.onepf.opfiab.amazon.AmazonBillingHelper@b3486198\r\n06-04 13:13:05.774: D/d(2307): In App Purchasing SDK - Sandbox Mode: PurchasingListener Context: org.myklos.inote.SettingsView@b33ef490\r\n06-04 13:13:05.814: D/OPF(2307): --> SetupManager.newResponse(org.onepf.opfiab.model.event.SetupStartedEvent@b339aec0);\r\n06-04 13:13:05.814: D/OPF(2307): --> GoogleBillingHelper.isBillingSupported();\r\n06-04 13:13:05.814: D/OPF(2307): Can't bind to service: class com.android.vending.billing.IInAppBillingService$Stub\r\n06-04 13:13:05.844: D/OPF(2307): Check if billing supported: null\r\n06-04 13:13:05.844: D/OPF(2307): Package installer: null\r\n06-04 13:13:06.094: D/OPF(2307): --> BillingEventDispatcher.onSetupResponse({\r\n06-04 13:13:06.094: D/OPF(2307): \"authorized\": false,\r\n06-04 13:13:06.094: D/OPF(2307): \"status\": \"FAILED\",\r\n06-04 13:13:06.094: D/OPF(2307): \"provider\": null\r\n06-04 13:13:06.094: D/OPF(2307): });\r\n\r\n06-04 13:13:55.095: D/org.myklos.inote.LicenseClass(2307): Purchase\r\n06-04 13:13:55.115: D/OPF(2307): --> BillingEventDispatcher.onResponse({\r\n06-04 13:13:55.115: D/OPF(2307): \"purchase\": null,\r\n06-04 13:13:55.115: D/OPF(2307): \"provider_info\": null,\r\n06-04 13:13:55.115: D/OPF(2307): \"verification_result\": null,\r\n06-04 13:13:55.115: D/OPF(2307): \"type\": \"PURCHASE\",\r\n06-04 13:13:55.115: D/OPF(2307): \"status\": \"NO_BILLING_PROVIDER\"\r\n06-04 13:13:55.115: D/OPF(2307): });\r\n06-04 13:13:55.115: D/org.myklos.inote.LicenseClass(2307): PURCHASE NO_BILLING_PROVIDER\r\n```\r\n\r\nIt seems the library does not detect the Amazon App installed.\r\n\r\nThe initialization of the library is as follows:\r\n\r\n```java\r\n\t\t\t// Init configuration\r\n\t\t\tConfiguration configuration = new Configuration.Builder()\r\n\t\t        .addBillingProvider(newGoogleProvider())\r\n\t\t        .addBillingProvider(newAmazonProvider())\r\n\t\t        .setBillingListener(myListener)\r\n\t\t        .build();\t\t\r\n\t\t\t\t\r\n\t\t\tOPFLog.setEnabled(true, true);\r\n\t\t\tOPFIab.init(mActivity.getApplication(), configuration);\r\n\t\r\n\t\t        iabHelper = OPFIab.getAdvancedHelper();\r\n\t\t        iabHelper.register();\r\n\t\r\n\t\t        OPFIab.setup();\r\n```\r\nwhere the newAmazonProvider method is:\r\n\r\n```java\r\n    private BillingProvider newAmazonProvider() {\r\n        final MapSkuResolver skuResolver = new MapSkuResolver();\r\n        skuResolver.add(ITEM_SKU, AMAZON_ITEM_SKU);\r\n\r\n        return new AmazonBillingProvider.Builder(mContext)\r\n                .setSkuResolver(skuResolver)\r\n                .build();\r\n    }\r\n```    \r\n\t\r\nPlease, let me know what else you need from me.\r\nThank you,\r\nJakub\r\n"},"comment":{"url":"https://api.github.com/repos/onepf/OPFIab/issues/comments/109174527","html_url":"https://github.com/onepf/OPFIab/issues/15#issuecomment-109174527","issue_url":"https://api.github.com/repos/onepf/OPFIab/issues/15","id":109174527,"user":{"login":"jakubklos77","id":6850822,"avatar_url":"https://avatars.githubusercontent.com/u/6850822?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubklos77","html_url":"https://github.com/jakubklos77","followers_url":"https://api.github.com/users/jakubklos77/followers","following_url":"https://api.github.com/users/jakubklos77/following{/other_user}","gists_url":"https://api.github.com/users/jakubklos77/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubklos77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubklos77/subscriptions","organizations_url":"https://api.github.com/users/jakubklos77/orgs","repos_url":"https://api.github.com/users/jakubklos77/repos","events_url":"https://api.github.com/users/jakubklos77/events{/privacy}","received_events_url":"https://api.github.com/users/jakubklos77/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T06:23:36Z","updated_at":"2015-06-05T06:23:36Z","body":"Amazon does not let me download a non UK version of the app. I have tried and it redirects me. How many country versions are there? The questions are\r\n\r\n1. Will it work with any other than those 2 in the PACKAGES collection?\r\n2. If yes shouldn't you maybe use regex in the collection?\r\n\r\nThank you"}}