[SOLVED] In App Purchase - SDKBOX v1.4.1.7 Google Play Errors

Hi There,

I’ve implemented iAP for iOS and Android with the latest SDKBOX build, in a version 3.9 cocos2d-x project.

It works great on iOS with no problems, and does what it’s meant to but there seem to exist errors in the android build. This is what I’ve done for the android version

  1. Implement billing permissions in the android manifest
  2. Added my iAP identifiers in the sdkbox_config file and created them in google play.
  3. built the release version of the game and uploaded it as alpha to google play
  4. signed into the app with the test account (using a release build)

Now it logs into google play and shows all achievements however it always returns “null” products for the google, I’ve checked everything and it all seems in order.

Further research, I grabbed a cocos2d-x v3.7 project and swapped around things… it works fine, so I’m wondering if there is a bug fix for the v3.9.

Any help would be appreciated.

Thanks
Marco

are u using same product id’s?

Maybe you set them wrong, or they are inactive in google play console. Make sure that your build - version code and version match uploaded to alpha versions.

They are active on Google play , they have the same id’s it just can’t retrieve . It says IABgoogleplay product request = null in the debug window.

I tested my in app purchases with another source code that is working and it seems to be working like a charm maybe v3.9 cocos2dx has problems :confused:

Can you post your logcat output?

Solved - just created a new v3.9 project …

Hi @marco231

Glad it worked for you. :smile:

Best,
Pabitra