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.