TestFlight uses the sandbox environment for in-app purchases. Here are some clarifications about using in-app purchases with TestFlight:
Sandbox Environment: When you use TestFlight for beta testing, in-app purchases are conducted in the sandbox environment, not the live App Store environment. This means that while testers can go through the process of making purchases, no real money is exchanged.
Testing In-App Purchases: You can test all types of in-app purchases (consumable, non-consumable, auto-renewable subscriptions, and non-renewing subscriptions) in TestFlight. These purchases are simulated transactions and do not charge the tester’s account.
Test Accounts: To test in-app purchases in the sandbox environment, testers should use sandbox tester accounts. These accounts are set up in App Store Connect under Users and Access > Sandbox Testers.
Restoration Testing: Ensure that testers can test the restoration of purchases, which is an important part of the in-app purchase flow.