IAP Badger -- upgraded from version 6 to latest, any changes required to make it work?

Hi,

I upgraded my IAP from 6 to 16 (the latest) .  Is there any changes to the way it works?  I’m asking this because I’ve had two recent purchases that didn’t get turned into products, there were no errors, but they ended up requesting refunds.

Running in the sim it works fine with fake purcahses.

Thanks, Greg

Is anyone else having problems with order fulfillment?

I am still getting customers who purchase products, but the products don’t show up, but they get billed for them.  This would mean that my purchase listener is not getting triggered or my product codes are different.  No errors are reported.  Purchasing works fine in sandbox mode.

I haven’t changed any purchase code for the past three years, it has always worked fine.  I just replaced my IAP_badger lua file from version 6 to version 16.

I am using build 3315 and have had the problem with the few past releases of corona daily builds.  

I know google is having some dev console problems with purchases, the Buyer Info screen is not available at the moment, I wonder if google could be part of the problem.

There are no errors, the purchases are just not showing up.

As Simon says…  I will have to run some real purchases myself to see what is happening.

here is a line from my product catalog, is it still the same?

CMD_ADS = {productNames = { apple=“com.xxx.remove_ads”, google=“addsoff”, amazon=“addsoff”}, productType = “non-consumable”, onPurchase=function() iap.setInventoryValue(“addsoff”, true) end, onRefund=function() iap.removeFromInventory(“addsoff”, true) end,},

Hi Greg,

I know we’ve spoken by email, but I’m just going to put this here for the benefit of other users having the same problem.

I’d advise:

  • Stripping out all code from your purchase listeners, except some print statements saying "I got to function X’; that way, you’re eliminating whether it’s a problem with how your code is handling purchases or if this is something to do with IAP Badger.
  • Turn verboseDebugOutput to true when you call iap.init
  • Run some real purchases and capture the console output

This should tell you whether the purchase listeners are being fired or not.

Simon :slight_smile:

I’ve been using successfully this amazing plugin with many apps and I must say Congratulations! it works perfect!

 

The app works perfectly building with Corona directly but when I build the app with Android Studio and Corona Native, then I receive an error when trying to purchase or restore.

 

I/Corona: ERROR: Runtime error

    ?:0: attempt to call field ‘purchase’ (a nil value)

    stack traceback:

     ?: in function ‘purchase’

     ?: in function ‘?’

     ?: in function ‘func’

 

I’ve added the “com.android.vending.BILLING”  permission to the Manifest and the plugin.google.iap.v3.jar to the libs folder also.

I’m using the local iap_badger.lua instead of the plugin to simplify.

Any idea to solve this issue?