Apple’s sandbox environment allows you to test in-app purchases on devices using product information set up in the App Store Connect. You can now test upgrades, downgrades and cancellations for subscriptions, as well as reset the initial offer to a test account from Settings on devices running iOS 14 or later. You can also test the app’s response to canceled purchases on devices running iOS 14 or later. And App Store Connect users with the developer role can now create and manage sandbox tester accounts.
Learn about testing purchases in the app in sandbox
Learn about testing at all levels of development