Topic was automatically imported from the old Question2Answer platform.
Asked By
GForce Productions
I am having an issue with implementing the new iOS plugin for in-app purchasing.
Previously in Godot 3.2.3 everything worked perfectly.
Now with the plug-in, if I call purchase, it returns an error, result code 31.
Anyone have experience with this?
Steps to reproduce:
Download the release plugins_3.3.zip
Copy the inappstore folder from the zip
Paste it inside Project_folder/ios/plugins
Export the project with the In App Store plugin ticked
On an xcode simulator or a real iphone, press a button that calls the purchase() method
In Godot 3.2.3 this was not needed, but that was actually not intended.
So now in Godot 3.3.2 they fixed it, and it is required to call the method with your product id’s before you can make a purchase.
Also beware that previously you could directly test it in XCode, but now you will still get the error, you have to use a physical iphone.
(Or maybe set up something with sandbox testing or whatever, I don’t have experience with that)