Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in-app purchase Sandbox Environment loop

I have in-app purchases working in my production app, and I'm adding a new item for sale.

However, I can not test a new in-app purchase in the sandbox environment. My purchases show up correctly. Restore works. However, if I buy the purchase, then I am prompted to login. I login using a test user account (I have 4 that worked about a month ago and are active). I'm then directed to the AppStore where I get a dialog box pop-up saying: [Environment: Sandbox] with cancel or continue. When I continue I am prompted for apple id password, which I use and press OK. It says "Loading..." for a few seconds and then the popup comes up again saying [Environment Sandbox] cancel/continue.

I have gone through about 5 times.
I have tried the account that I used to test previously I have created a new user I have tried to test on multiple devices that both worked about a month ago. I have reset my device.

In the meanwhile, I've been able to test out my functionality and it's OK - but I can't do the end-to-end purchase/test that I want to do before releasing the update.

Has anyone seen anything similar? I'm looking for any suggestions. Thanks.

like image 411
jpporterVA Avatar asked Aug 07 '12 14:08

jpporterVA


People also ask

What is Sandbox environment Iphone?

The Apple sandbox environment lets you test in-app purchases on devices using product information set up in App Store Connect.

How do I enable sandbox on my Iphone?

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.


1 Answers

OK. I've figured this out. It was my test account. Since I was taking the account and logging in through Settings->App Store, I was registering each with credit card and email notification. I used an old account that created before but hadn't "activated", and it worked. So, the key was to not log in through the Settings->Store - stay logged out. And then log in with a test account that was only created on iTunes Connect, but never activated.

like image 61
jpporterVA Avatar answered Sep 18 '22 02:09

jpporterVA