+2 votes

Hi, I am trying to get In-App-Purchases working with Godot on iOS since almost a week now based on this doc:


I created an entry for the App in Appstore Connect, created an App-ID and an In-App-Purchase. The In-App-Purchase has the state "ready to submit".

So far everything is working, I have no issues installing the app on devices whatsoever, so I guess the basic licensing is configured correctly. The app was successfully tested with internal testers and external testers on TestFlight. However in app purchases aren't working at all.

When I am calling


with either


or just


(don't know which is correct, the doc isn't clear about that) I get the following response

{ "type": "productinfo", "result": "ok", "invalidids": [
mypurchase, com.mycompany.myapp.mypurchase ], "ids": [ ], "titles": [
], "descriptions": [ ] , "prices": [ ], "localized_prices": [ ], }

When I am calling


the call itself is returned with an OK.
After a few seconds I receive the following event:

{ "type": "purchase", "result": "error", "product_id": "mypurchase",
"error": "Cannot connect to iTunes Store"}

Please is there anyone here who can help me? I am slowly going mad, I worked on this for more than 30 hours now and I am really running out of ideas.

Thanks for any hints,

in Engine by (205 points)

Were you able to figure this issue out?

I am experiencing the exact same problem you are.

I tried following a bunch of potential solution to no avail...

I have the same problem too... "cannot connect to itunes store".
I tried everything. Did you solve it?

Hello Tobi, could you point us to the right direction if you have solved this?

It was just a missing contract my boss had to accept. Don't know any more details than that, I'm sorry :/

5 Answers

0 votes

Hi Tobias. Did you find a solution yet?
Looking to switch game engine from Unity and would not do the switch if IAP is not working for iOS

by (18 points)
0 votes

Here is my working IAP script, hope this helps

by (18 points)
0 votes


I got this to work.

have you set up your app's IAPs on App store connect?

If so, it is the "PRODUCT ID" string that you set up in there.

It will be something like au.org.xxxx.xxx and in your game you call:

    IAP = Engine.get_singleton("InAppStore")
    var event = IAP.request_product_info( { "product_ids": ["au.org.xxxx.xxxx", "au.com.xxxx.xxxx"] } )
by (14 points)
How to obtain prices?
0 votes

It was just a missing contract my boss had to accept. Don't know any more details than that, I'm sorry :/

by (205 points)

Thank you! I solved this, it's because I had to set up banking in App Store Connect, otherwise Apple would not allow the connection. Your code is actually perfect.
Bascially Apple doesn't really allow IAPs to be tested if banking is not set up (but it's not clear from the documentation, should be added in Godot docs as well!)

0 votes

Solved this after 3 days of trial and error.

The code posted above is perfect.
The problem was that App Store Connect was not set up correctly from Apple's side. Look in the comments for more info.
Being not fully set up, Apple would not enable the IAP's, thus sending the message "cannot connect to iTunes Store".

I had the same issue, should be added to Godot Docs for clarity.
Remember: even just to test IAPs, you need to have a dev account with Apple with banking set up, and enable that in-app purchase.

by (21 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.