Using Sandbox and Testflight for IAP Testing

Hi,

I am hopefully done with all the coding for my app before its release. I just need to start testing my IAPs before I can put it on the iOS App Store. I am starting to run into problems doing this.

To keep things simple, Test Flight is the only way I have to get my app on a real device for testing. This is due to not having a Mac and using AppInCloud for xCode.

The problem begins with trying to sign on to created Sandbox accounts. Even after signing out of my Test Flight device from my normal iTunes account ID and signing in with a Sandbox account, it does not let me sign in. My phone gets the pop-up, “iTunes account creation not allowed. This Apple ID cannot be used with the iTuned Store at this time. Please try again later.” Even though it mentions “account creation”, I did not click on a “create new account” button or anything like that when signing in. 

I’m not sure if I’m logging in to the wrong spot with my Sandbox accounts or what. I tried signing in to both iTunes connect and Test Flight on my iPhone with two different Sandbox emails, and both wouldn’t allow me to sign in. 

I was under the impression that Test Flight could be used for Sandbox IAP testing. I’ve only used internal testing so far, so maybe that has something to do with it? 

I have creating Sandbox accounts down, but how exactly would you get them to work over Test Flight, if it’s even possible? Any help would be greatly appreciated!

Thanks,

Dan

As I mentioned in this post:

https://forums.coronalabs.com/topic/69810-quick-question-about-using-test-flight-and-testing-iaps/

IAP testing really doesn’t have anything that is Corona specific. Once your app is built and on iTunes Connect and available on TestFlight, it’s just like any other iOS app. 

We specifically don’t document these processes because Apple is always changing how this works and its best to follow their tutorials/instructions on how to test your app.

Rob

Great, thanks Rob.

For anyone else that will have this problem, I did get testing IAPs to work. 

If you got your app downloaded using Test Flight for testing, then you are already set to test IAPs if you have them coded in your app. Your Test Flight account acts as a Sandbox account. Your IAPs can be in the “Ready to Submit” status, and I would connect them to your app in the “Prepare for Submission” area just to be safe. When you make a purchase with your Test Flight account, it does everything a normal purchase would do besides charge a fee.

You can, still, make sandbox accounts. Sign out of your iTunes account on your device, then open your test app and click on an IAP you wish to test. Sign in with your sandbox account. This allows you to test in other countries’ currency if you wish.

Hope everything works out for you,

Dan

As I mentioned in this post:

https://forums.coronalabs.com/topic/69810-quick-question-about-using-test-flight-and-testing-iaps/

IAP testing really doesn’t have anything that is Corona specific. Once your app is built and on iTunes Connect and available on TestFlight, it’s just like any other iOS app. 

We specifically don’t document these processes because Apple is always changing how this works and its best to follow their tutorials/instructions on how to test your app.

Rob

Great, thanks Rob.

For anyone else that will have this problem, I did get testing IAPs to work. 

If you got your app downloaded using Test Flight for testing, then you are already set to test IAPs if you have them coded in your app. Your Test Flight account acts as a Sandbox account. Your IAPs can be in the “Ready to Submit” status, and I would connect them to your app in the “Prepare for Submission” area just to be safe. When you make a purchase with your Test Flight account, it does everything a normal purchase would do besides charge a fee.

You can, still, make sandbox accounts. Sign out of your iTunes account on your device, then open your test app and click on an IAP you wish to test. Sign in with your sandbox account. This allows you to test in other countries’ currency if you wish.

Hope everything works out for you,

Dan