iOS - How to Test In-App Purchases in Your App

While testing your app before release, it's a good idea to be sure and test the purchases included within it (Free or Paid Subscriptions and individual Issues). This requires setting up a test user in iTunes Connect which you will log in as.

How to Set-up a Test User in AppStore Connect

1. Log into AppStore Connect and click on "Users and Access".

2. Click on the tab "Sandbox Testers".

3. Click on the "+" icon to create a new tester and fill out the information.

4. Click on "Save" to save your tester.

5. A message will tell you whether the user was successfully created.

You can then log in as that user on your iOS device to test purchases.

How to Test In-App Purchases with a Test User

1. On your iOS device, go to the "Settings App" and tap on "iTunes & App Store" in the left column.

On your iOS device, go to the "Settings App" and tap on "iTunes & App Store" in the left column.

2. Tap on the "Apple ID" label and a dialog will appear.

3. Click on the "Sign Out" button.

Click on the "Sign Out" button.

4. Now launch your test app and attempt to make a purchase.

You will be prompted to sign in. Use the e-mail and password of the test user you created earlier and you will be allowed to make a purchase without incurring a charge.

Note: If you test a paid subscription purchase first, you will be entitled to the most recent paid single-issue. If you want to test both single issue purchases as well as subscriptions, we recommend purchasing the single-issue first followed by the subscription purchase.
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk