I'm developing an app with in-app purchasing and I am getting this error:
You are not authorized to make purchases of this InApp in Sandbox at this time.
I am sure I have everything set up correctly. I've made sandbox accounts for purchasing the items. I have my code intact (thanks to Ray Wenderlich), and I'm pretty sure everything else is in order. But something must not be right.
What could be causing this error?
EDIT:
I'm working on the Xcode Simulator.
If you get hit with a message on your Apple iPhone or iPad that says “Purchase – In-app purchases are not allowed” when trying to buy purchases from within apps, it may be related to a restriction setting on the device. From the Home screen, swipe over to the screen with the “Settings” icon, then select it.
In iOS and iPadOS, the sandbox account appears in Settings > App Store after the first time you use the device to attempt a purchase in a development-signed app. There's no need to sign out of the non-Sandbox Apple ID. Sign in using a Sandbox Apple ID.
If you have multiple iTunes Connect accounts, make sure that your test user accounts exist in the same iTunes Connect account as the app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With