Hi, I'm facing a weird issue while testing my game on iOS using Testflight. My IAPs have not been submitted for Apple's review yet. Whenever I click a button to buy something in the game, it takes up to 10 seconds before the Apple's popup appear. Sometimes it doesn't work at all. Even if it does and the popup shows, after confirming the purchase usually nothing happens (I had to try 3 times to buy an IAP before it succeeded). Should I expect these issues to be gone once I publish the game in the store, or may something be wrong with my code? Everything works well in the editor.
IAP runs in a virtual environment in the Unity editor, so running it properly in the editor does not mean it will be consistent on the device. Could you provide the device log for further investigation? https://forum.unity.com/threads/how-to-capturing-device-logs-on-ios.529920/
Issue solved. It turned out not to be related to IAPs. The problem was with with my "Purchase" button.