An iOS app developer wants to test a new in-app purchase flow with external TestFlight testers. Which statement about in-app purchases in TestFlight is correct?
- A.A. External TestFlight testers are charged real money for in-app purchases exactly as in production
- B.D. Developers must create special test SKUs distinct from production SKUs for TestFlight IAP testing
- C.C. In-app purchases are disabled entirely in TestFlight and can only be tested in production after App Store approval
- D.B. TestFlight uses a sandbox environment; testers can test in-app purchases without being charged real money, using sandbox Apple ID credentials
Why D is correct
TestFlight uses the App Store sandbox environment for in-app purchases. Testers are not charged real money; transactions use sandbox Apple ID accounts or automatic sandbox testing. The same production IAP product IDs work in TestFlight without needing separate test SKUs. In-app purchases are not disabled in TestFlight - testing the purchase flow before App Store release is one of TestFlight's core use cases.
Know someone studying for Mobile Security Fundamentals? Send them this one.