Zhenyi Tan And a Dinosaur

Gotchas of Testing Subscriptions with Sandbox, Part 1

When you need to test in-app purchases in your apps, Apple lets you create sandbox tester accounts, so you don’t have to create real Apple IDs just to test the purchase flow.

But when you try to pay for in-app purchases with the sandbox account, the process is a bit weird:

  1. You sign in with the sandbox account.

  2. A sheet slides up, and you tap Subscribe.

  3. You enter the password for the sandbox account. (Didn’t you just sign in?)

  4. The subscription appears successful.

  5. The subscription sheet slides up again, and you tap Subscribe again. (???)

  6. You enter the password for the sandbox account again.

  7. The Done animation shows up again.

  8. An alert pops up, saying the subscription is finally successful.

Now, it’s not a bug in your code and will not happen in production. So I guess it’s… fine?