How can I use my sandbox account to test in-app purchases?

I have created and verified a new sandbox account in Users and Access. Now I want to test my in-app purchases with this account on my iPad Air in my iOS game. I have already uploaded a build to TestFlight. Then I have downloaded and installed my game from TestFlight on my iPad Air. How can I login on my iPad Air with my new sandbox account to test my in-app purchases in my game?

Answered by App Store Commerce Engineer in 878506022

Hello - Please review this documentation with details for Sandbox testing in a TestFlight build of your app: https://developer.apple.com/documentation/storekit/testing-in-app-purchases-with-sandbox#Sign-in-to-your-Sandbox-Apple-Account-for-a-TestFlight-app

Related documentation to review:

Please let us know if you have any additional questions or need further assistance.

Thank you.

Accepted Answer

Hello - Please review this documentation with details for Sandbox testing in a TestFlight build of your app: https://developer.apple.com/documentation/storekit/testing-in-app-purchases-with-sandbox#Sign-in-to-your-Sandbox-Apple-Account-for-a-TestFlight-app

Related documentation to review:

Please let us know if you have any additional questions or need further assistance.

Thank you.

I have created a new Sandbox account in Users and Access and then I have added the new Sandbox account in my Developer settings on my iPad Air. I have tested my in-app purchases in debug mode on my iPad Air and then the Sandbox account is automatically used for the in-app purchases.

But the problem is that when I download my game from TestFlight on my iPad Air then my Apple Developer account is automatically used for in-app purchases instead of my new Sandbox account and I don´t know how to change this behaviour.

Is it possible to use the Sandbox account for in-app purchases when I install my game from TestFlight on my iPad Air?

How can I use my sandbox account to test in-app purchases?
 
 
Q