To test in-app purchases before they are approved, you must use test users that you can create in iTunes Connect.
As soon as you log into iTunes Connect, you click where it says βUser Managementβ, which allows you to create test users. After creating a test user, you can use it in your application development assembly to test in-app purchases. You can also create several test users if you need to repeatedly test purchases that are not paid in the application.
Gavin source share