How do I test IAP for a new IOS app not released?

How do I test IAP for a new IOS app not released?    

Background:

* have the app setup in iTunes connect “Prepare for Upload”

* entered an IAP in iTunes Connect, is “Ready for Submit” as it says “Your first In-App Purchase(s) must be submitted with a new app version. Select them from the In-App Purchases section of the Version Details page and then click Ready to Upload Binary.”

* I’ve seen the create Test Users page 

Key questions:

Q1 - How do I run a corona app in XCode to get it to run in this “sandbox” mode?   Not sure what this means.  I know how to run it on a device (transfer it there via xcode) such that when it runs I can see the log output from the device in the console section in Xcode Organizer

Q2 - How do I deal with the fact I can’t submit an IAP in iTunes Connect whilst my app isn’t ready yet?

Hi Greg,

I’ve never done this in Xcode, but here’s how you do it on the device:

  • You’ll need to start by creating a test user account.  Log into iTunes Connect, select Manager Users, and create a Test User.  Make sure you use a different email address than you’re regular iTunes account.  (You may need to create a new email address to serve as the test account.)
  • Transfer your development binary (built with your development provisioning profile) to your device.  Go to Settings, Store, and log out of your regular iTunes account.  Don’t login into your Test User account here
  • Run your app and do an IAP purchase.  You’ll get the IAP popup, but it’ll indicate that it’s in sandbox mode.  From here, login with your Test User account.  It’ll then continue with the entire IAP flow exactly as it will work in production, except it won’t charge you for the purchase.  Note that your IAP products don’t have to be approved by Apple for this to work – as long as you’ve created it in iTunes Connect, you can test it like this
  • When you’re done testing, you’ll probably want to go back to Settings, Store, and log out of your Test User account and back into your regular account (so that you can use your device for other things)

Hope this helps.

  • Andrew

Thanks. So there’s no additional steps then really re sand boxing. I was just assuming there was I guess the way the apple doco read :). Thanks Ill try this out.

That’s right, it’ll automatically use the sandbox IAP when you login with a Test User account.

  • Andrew

Hi Greg,

I’ve never done this in Xcode, but here’s how you do it on the device:

  • You’ll need to start by creating a test user account.  Log into iTunes Connect, select Manager Users, and create a Test User.  Make sure you use a different email address than you’re regular iTunes account.  (You may need to create a new email address to serve as the test account.)
  • Transfer your development binary (built with your development provisioning profile) to your device.  Go to Settings, Store, and log out of your regular iTunes account.  Don’t login into your Test User account here
  • Run your app and do an IAP purchase.  You’ll get the IAP popup, but it’ll indicate that it’s in sandbox mode.  From here, login with your Test User account.  It’ll then continue with the entire IAP flow exactly as it will work in production, except it won’t charge you for the purchase.  Note that your IAP products don’t have to be approved by Apple for this to work – as long as you’ve created it in iTunes Connect, you can test it like this
  • When you’re done testing, you’ll probably want to go back to Settings, Store, and log out of your Test User account and back into your regular account (so that you can use your device for other things)

Hope this helps.

  • Andrew

Thanks. So there’s no additional steps then really re sand boxing. I was just assuming there was I guess the way the apple doco read :). Thanks Ill try this out.

That’s right, it’ll automatically use the sandbox IAP when you login with a Test User account.

  • Andrew