[SOLVED]Need Help to integrate IAP of sdkbox, cocos2d-x 2.2.6

Hi.

I am integrating the in-app purchase plugin of sdkbox in the ios version of my game.
I have read the manual doc and followed it.
Now my game shows the iap items.
But it shows the message “Cannot connect to iTunes Store” when I click the any button such as “Use Existing Apple ID”, “Create New Apple ID”, “Cancel”.
The network is OK.

What is the reason not to connect to iTunes?
I have to done it asap.
Please let me know if there are experienced developers.

Thanks.

Hi @TobiasOlsen

most probably, it takes some time from Apple side to setup the ID’s, but it should work after some time.
Has it worked for you in meantime !!
Let us know.

Best,
Pabitra

Keep in mind that You can only test iOS IAP with a real device. If you test with a simulator, you’ll see this error.

I tested it in the real device.
Frankly, I am new at iap and this is not published in app store yet.
I added items in the app store and integrated iap sdk in my app.

Please let me know if I missed something.
.
Thanks.

Hello @TobiasOlsen

For iOS, it should work without publishing the app to beta also.

Steps:

  1. Import SDKBOX IAP into your project.
  2. Replace the following with yours -

Default:

“coin_package”: {
“id”: “com.cocos2dx.plugintest2”
}

Yours

“my_coins”: {
“id”: “com.mystudio.mycoins”
}

It should do your work.
After that, test in a real iOS device.

you can check IAP items with a test ID that you would have set while adding IAP items in your iTunesConnect.

Best,
Pabitra

Thanks a lot!

I was testing with my real account.
It works good now.

Thanks again for your kindly help. :slight_smile: