The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I have been trying to implement one non-consumable IAP into my IOS game and I just cannot get it working.

I can successfully call request_product_info({"product_ids": [""]}) and it returns '1' and 'adding to product list'

But when I try to call payment.purchase({ "product_id": ""}) it returns '31'. What does that mean? Am I entering the parameters wrong? If anyone has a working script, it would mean the world to me if you shared it.

The only places that I have found information about IOS IAPs:

App store plugin script example:

Official docs:

Reddit post:

I have read through these pages multiple times and I still don't quite understand why my script isnt working.
Here is my script:

I have the In App Store plugin installed and checked, I have created an IAP in app store connect, I have my bank and tax info filled out in app store connect. I have been exporting my game with 'export with debug' unticked, and In Xcode signed as Apple Development. I am testing it by plugging my iPad into my mac and building my game to it. I am using godot version 3.4.4. Any help is greatly appreciated.

Godot version 3.4.4
in Engine by (12 points)

Please log in or register to answer this question.

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.