Search code examples
iosin-app-purchasesandbox

Debug in-app purchase outside of sandbox?


I have an app that uses non-consumable in-app purchases to provide content to the user.

These purchases work fantastically when I run from Xcode (via sandbox) or via ad-hoc builds (for some reason, also via sandbox). It's been approved by Apple and put on the AppStore. But when I download the production version from the store and click the "buy" button it fails.

Seeing as the problem only occurs in production, I'm a bit stymied as to how to debug it. I suspect it has something to do with purchasing through the sandbox vs. production servers, but even ad-hoc is done through the sandbox.

Is there anyway to debug this problem short of adding a bunch of alert dialogs and submitting to Apple again?


Solution

  • You are totally right;

    You need all your Contracts (in iTunes Connect) to be active, otherwise you wont be able to make in-app purchases.