IAP Badger: a unified approach to in-app purchases

Hi Dave,

I’ve checked the plug-in version on BitBucket (that connects to Corona’s servers) and it does have the correct/latest version, which should allow you to run without supplying an inventory filename.

Do you still get the same problem?  If you do, I’ll contact the support team - for some reason, maybe the build servers haven’t noticed the changes for some reason.

Kind regards,

Simon

Hi everyone,

A frequently requested feature is subscription payments via IAP.

Does anyone have any working IAP subscription code for iOS, Android and Amazon, and would be interested in collaborating to include subscriptions ‘out of the box’ on IAP Badger.

If you have some code that has been tested in the real world, and this is something you’re interested in working on, feel free to message me directly.

Kind regards,

Simon

PS - if you are interested, be aware that IAP Badger is open source, so this would include sharing code on Github for everyone’s use.

This is what I’m getting in the windows simulator using build 2017.3068

16:17:25.477  PluginSync: plugin uk.co.happymongoose/plugin.iap\_badger needs to be updated for platform win32-sim to build number: 2642 16:17:25.477  PluginSync: downloading plugin: http://plugins.coronasphere.com/uk.co.happymongoose/plugin.iap\_badger/2015.2642/win32-sim/plugin.iap\_badger.zip

 later:

16:17:27.431  ERROR: Runtime error 16:17:27.431  iap\_bader:init - no filename for inventory file provided 16:17:27.431  stack traceback: 16:17:27.431   [C]: in function 'error' 16:17:27.431   ?: in function 'init'

Still complains if I don’t give it a filename, and the “2015.2642” seems old, right?  Maybe this is just a win-sim issue only.  I’ve not yet tried a device build (and usually don’t if I can’t get it to run in sim), but will try that next, see if it’s win-sim isolated.  thx

[edited] code formatting lost during post

Hi Simon, apologies it took me a while to get back to this, but yep an Android build via CSDK 2017.3068 still generates same

I/Corona ( 740): ERROR: Runtime error I/Corona ( 740): iap\_bader:init - no filename for inventory file provided

I’ll get in touch with the engineers at Corona - it looks like the server may have fallen out of sync with BitBucket for some reason.

Simon

My searching didn’t show anyone else with this problem…

Buying something with debug mode turned on works fine, but when I turn it off and run on the device with a sandbox ID, I get an error message that it can’t connect to the iTunes store:

iapbadgererrornoconnection.png

Any idea on where I should be looking for the solution? I can post my code if needed, but am hoping this is a known problem.

 Jay

Hi Jay,

Are you logged into your device as one of the test users you set in iTunes Connect?

Kind regards,

Simon

[quote name=“happymongoose” post=“358563” timestamp=“1496133093”]Are you logged into your device as one of the test users you set in iTunes Connect?[/quote] Yes and no. Not logged in, but when it asks me for my username and password when I try to buy, I’m using the sandbox credentials (I’m logged out of iTunes on the device). It was rejected by Apple with the exact same error, and I would assume they were logged in correctly with their account. Jay

Hi

I found an issue in amazon store.

I don’t know why the successListener of “iap.purchase” in amazon store will return twice. So when I buy a things in store, it will return twice.

Hi there,

This isn’t an issue I’ve come across in my own testing.  Is it possible you have two instances of IAP Badger running?

Simon

I don’t think so, as no problem in Apple IAP and Google IAB

But I use another Android device instead of Kindle to test it

I followed the testing procedure that Amazon suggested for other Android device.
https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/installing-and-configuring-app-tester#installing-app-tester

Hi all, sorry but this bug is always here. I am using the last version of corona and so the last iapbadger plugin, and in debug mode loadProducts failed to call a listener .
Am i alone with this problem ?

Status update

Just to let you know where I am with some of the issues raised earlier in the thread.

There’s an issue that Corona’s servers aren’t picking up a newer version of IAP Badger that’s been uploaded to BitBucket.  This means plug-in users are building with an older version of the code.

I’ve tried to contact Corona twice now about this but I haven’t heard anything back.  I’ve tried:

  • using their general support form
  • directly emailing the engineer who helped set up the plug-in (who may or may not work there any more)

Didn’t want anyone to think I’d forgotten about these issues - I’ll let you know when/if I make any progress with this.

Simon

I ask Rob to contact you

Hey Simon. I don’t see any requests sent to support AT coronalabs.com attached to your email address. Did you send them from a different address.  I’ll email you directly for more information.

Rob

Hi everyone,

Rob (legendary) has helped resolve the issue of the plug-in not updating.  Turns out (in rather less legendary fashion) I was pushing code out to the wrong repo.

Hopefully, this will fix some of the problems plug-in users have been having.

Simon 

Is there a date for this update to be online ?

It should be there now.

I haven’t had a chance to test it for myself, but Rob said their build servers had picked up the change.

Next time I add an update, I’m going to add a function to query the library version number to make testing this easy.

Simon

Hi Simon ! Did you see the last change (today) of the google iap plugin ? Does this has an impact on iap badger ? FYI :https://coronalabs.com/blog/2017/07/19/important-google-iap-plugin-update/

Hi there,

No - I didn’t see this.  Thanks for bringing it to my attention because it will affect IAP Badger.

I have some time off coming up next week, so I’ll code a fix and update then.

Kind regards,

Simon :slight_smile: