maxmoore14 / AndroidInAppBilling

Android App Billing plugin for Cordova
1 stars 2 forks source link

Need a working example #2

Open YodasWs opened 9 years ago

YodasWs commented 9 years ago

Using this plugin, getAvailableProducts gives an empty array. I need a working example of how to use this plugin with PhoneGap Build.

inappbilling.init(function() {
   inappbilling.getAvailableProducts(function(r) {
      console.log("Successfully loaded " + r.length + " available products")
   }, function(e) {
      console.error("Could not load products")
   })
}, function(e) {
   console.error("Could not start inappbilling")
})
jamminjames commented 9 years ago

Yes, please, a working example! I'm getting rejected by Google Play, and I'm afraid to keep trying, as they will reject your app for good after so many tries.