This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
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": ["com.developer.game.inapppurchase"]}) and it returns '1' and 'adding com.developer.game.inapppurchase to product list'

But when I try to call payment.purchase({ "product_id": "com.developer.game.inapppurchase"}) 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: https://github.com/godotengine/godot-ios-plugins/blob/master/plugins/inappstore/README.md

Official docs: https://docs.godotengine.org/en/stable/tutorials/platform/ios/plugins_for_ios.html

Reddit post: https://www.reddit.com/r/godot/comments/jp2vra/iap_for_ios_and_testing_on_device/

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

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.