AndroidInAppBilling
AndroidInAppBilling copied to clipboard
Cannot get the in app item product list
am current develop an Android application with In-App Billing Services using Cordova 3.4. I follow this doc and use automatic installation to install and implement the function.
I created an application in Developer Console, putting the apps in Alpha testing channel, set up an testing account...etc Everything is followed to the document. As a result, the plugin can be initialised and return the result "OK" to me. But when I call the getAvailableProducts function, it only return an empty result.
One more weird issue is that when I try to use a wrong public key. The plugin can be initialised and return "OK" to me. I am wondering if I could connect to Google and get the correct in-app items. Hope anyone can give me some direction of finding what setting I could gone wrong.
Thank you!
I've got the same problem; when I try to get the available purchases it returns an empty list, and when I try to buy passing in the product ID I get a google play error: 'The item that you were attempting to pruchase could not be found'. The init returns 'OK' and if I pass in the SKU I can see that it's there under moreSKUs... not sure why it's not working. Also not sure if this plugin is being actively supported?
Did you get it working JohnnyWMobile?
I had this issue as well.
I tried doing a "buy" since I know the strings of my productIds and that worked fwiw.
Until I consumed the purchase this item now showed up in the response to getAvailableProducts (but not my other items).
I have also followed all of the instructions and can answer yes to all of the questions in the questionnaire, and I also have this problem. Unfortunately I get the empty array of available products despite activating my item 8 hours ago, and I have not been able to complete a purchase. I know the strings of my productIds (who doesn't?) and I have triple quadruple checked the string, but no luck performing a purchase or getting products.
Are your products "active"? I made that mistake early on On Aug 8, 2014 8:28 PM, "Marc Syp" [email protected] wrote:
I have also followed all of the instructions and can answer yes to all of the questions in the questionnaire, and I also have this problem. Unfortunately I get the empty array of available products despite activating my item 8 hours ago, and I have not been able to complete a purchase. I know the strings of my productIds (who doesn't?) and I have triple quadruple checked the string, but no luck performing a purchase or getting products.
— Reply to this email directly or view it on GitHub https://github.com/poiuytrez/AndroidInAppBilling/issues/63#issuecomment-51675833 .
It's working now, actually! It took longer than 4-6 hours. Took a good 12 hours to kick in.
My product has been active since April yet inappbilling continues to return an empty list.
inappbilling.init(function() {
inappbilling.getAvailableProducts(function(r) {
if (typeof r == 'string') r = JSON.parse(r)
console.log("Successfully loaded " + r.length + " available products")
}, function(e) {
console.error("Could not load available products; " + e.message)
})
}, function(e) {
console.error("Could not start inappbilling; " + e.message)
})