I am testing a non-consumable IAP on an iPhone 6s running iOS 11 GM. Whenever I tap my \"Buy\" button, it asks me to sign in. I tap \"Sign in with existing apple ID\" and en
Go to Settings ▸ iTunes & Appstore scroll to bottom.
You can add account here for sand box purchase.
For iOS 11 and older, sign out the existing account if any. For iOS 12 and newer do not sign out of your Apple account - but manage it at the bottom of the page mentioned above.
Docs: https://developer.apple.com/documentation/storekit/in-app_purchase/testing_in-app_purchase_transactions
To keep the sandbox account operational, be sure to only use it when you see [Environment: Sandbox] on the login prompt. For all sandbox accounts, you still have to go through the email-verification process (click link in email).