What you need

In order to correctly test receipt validation, you need to:

In order to correctly test InApp purchase validation, you also need to:

Sandbox Test Accounts Tip

Each In-App Purchase sandboxtest user account is tied to one and only one email address. As such, you cannot reuse an existing email address with another test user account. You can create as many test user accounts as you want in iTunes Connect. Furthermore, if your email service provider supports email addresses with "+" sign, you can use that as an alias for your normal email address. For instance, if your email is foo@example.com, then you can use the foo+us@example.com, foo+uk@example.com, and foo+fr@example.com emails when creating test user accounts in iTunes Connect. All communications sent to foo+us@example.com, foo+uk@example.com, and foo+fr@example.com will be routed to foo@example.com.

Testing on OS X

Now that all the pre-requisites are ready, you can test your receipt validation code:

For InApp purchases:

Testing on iOS

Now that all the pre-requisites are ready, you can test your receipt validation code:

For InApp purchases: