Skip to main content
Inspiring
April 13, 2017
Answered

Cannot test In-App-Purchases in iOS Sandbox

  • April 13, 2017
  • 1 reply
  • 4685 views

I'm using the Milkman StoreKite ANE ( maybe this is out of date? who would even tell us? )

And I cannot seem to get In App Purchases to test correctly. I have the development certificate, the development provisioning profile, the ad-hoc distribution checked in Flash Builder. I have created multiple sandbox testers. I have logged out of itunes on the test devices. I have created the In-App-Purchase products on iTunesConnect - they are all "Waiting To Submit"  (They can't ACTUALLY be submitted, because to submit you have to pass review, and to pass review, you have to TEST the purchases!)

Anyway, when I click a product in game it asks me to login, but does NOT say its a sandbox environment. No products are found and all purchases fail.

I'm pretty much out of ideas at this point.

This topic has been closed for replies.
Correct answer physics9c

I frequently unlock all sorts of capabilities for testing.

The only question is that I want to know.. when it comes time for review.. an IAP will go through. I've even hooked up dummy classes that PRETEND the purchases go through (or fail) just to watch the code response.

I just want to know it will work for the real deal. Milkman has personally confirmed that we must use a development profile on a debug-target.

He also says all financial contracts must be signed. I will have to make sure the project owner does so since I am just the lead coder. Hopefully that was the issue and we can move forward. It seems very strange to me. Thanks for your time.


For anyone else who might have this problem, the Milkman was right.

The App Owner ( im just coder ) just needed to sign his financial and bank contracts.

For the record you use:

Development .p12, development provisioning profile.

Sandbox test login.

1 reply

Colin Holgate
Inspiring
April 13, 2017

It's over two years since I saw an update to the StoreKit ANE. Then it was version 2.3.0.

This article ought to still work, other than Apple's pages looking different now. Make sure you haven't missed any steps:

Using the iOS In-App Purchase native extension for Adobe AIR | Adobe Developer Connection

Also, look at the documentation that came with the ANE, and check the example XML, to make sure you have lines like this one in there:

<extensionID>com.milkmangames.extensions.StoreKit</extensionID>

physics9cAuthor
Inspiring
April 13, 2017

Thank you, I have read that article and many, many others. This article does not mention Sandbox Testers, or the Sandbox environment, so I'm not sure those were even standard at the time.

The only thing which might be different is the ipa-debug target. Since I'm doing my packaging from Flash Builder, not the command line, I assumed all the correct targets would be set under a development/debug build.

I might consider trying the command line, though the series of options seems hopelessly complex.

physics9cAuthorCorrect answer
Inspiring
April 14, 2017

I frequently unlock all sorts of capabilities for testing.

The only question is that I want to know.. when it comes time for review.. an IAP will go through. I've even hooked up dummy classes that PRETEND the purchases go through (or fail) just to watch the code response.

I just want to know it will work for the real deal. Milkman has personally confirmed that we must use a development profile on a debug-target.

He also says all financial contracts must be signed. I will have to make sure the project owner does so since I am just the lead coder. Hopefully that was the issue and we can move forward. It seems very strange to me. Thanks for your time.


For anyone else who might have this problem, the Milkman was right.

The App Owner ( im just coder ) just needed to sign his financial and bank contracts.

For the record you use:

Development .p12, development provisioning profile.

Sandbox test login.