I'm trying to test in-App purchasing of a non-consumable product (a subscription to content which is stored on our own server).
I have Sandbox testers set up in iTunes Connect.
The purchase routine is as follows:
Code: Select all
on purchaseMonthlySub
mobileStoreEnablePurchaseUpdates
mobileStoreSetProductType "com.softcast.flschoollaw.SCHOOLAWMONTHLY", "inapp"
mobileStoreMakePurchase "com.softcast.flschoollaw.SCHOOLAWMONTHLY", "1", "This is a monthly subscription to FLSLG"
end purchaseMonthlySub
I have side-loaded the built app onto my iPhone via xCode for testing, since In-App Purchasing doesn't work in simulation. The product is listed as "Ready To Submit" in iTunes Connect.
When the routine executes, I get prompted twice for the Apple ID and password, and then I get the dreaded "Cannot connect to iTunes Store" message. This happens with a brand-new, never-before-used Sandbox test account.
I've checked the Apple FAQ tech note regarding in-app purchases, but to no avail. Would appreciate any and all help with whatever I might be missing here... this is for a client, and I'm already late delivering them something that works -- much thanks.