Success with testing in-app purchases
Posted: Mon Jul 04, 2016 1:20 am
I've just spent a couple of day's trying to work out how to test IOS in-app purchases. I'm so excited to have (at last) got a successful test that I thought that I would post the winning formula (LC8.0.1 / OSX 10.11.5 / IOS 7.1.2) :
1) Create your app with IOS in-app purchases as outlined in LC's tutorial -
http://lessons.livecode.com/m/4069/l/18 ... e-appstore
The key field is the ProductID. Note that:
- in Android / Play Store the ProductID is prefixed by the app identifier (from StandAlone Settings); but
- in IOS / App Store the ProductID is NOT prefixed by the app identifier
2) Create an email address (e.g. on Gmail) for a test user
3) In iTunes Connect > Users & Roles > Sandbox Testers - Create a test user with the email address that you created in step 2. Note that you don't need to add any credit card / bank details.
4) Logon to the email address that you created in step 2, find the email from Apple, and verify your test user
5) On your test device - go into Settings > iTunes & App Store - and sign out of your current Apple ID. Do NOT sign back in with your test user ID.
I re-booted my test device after this step - but I don't know whether this was needed.
6) Use Xcode to load your app onto your test device.
7) Start your app on your test device; and press the in-app purchase button that you want to test. You will be prompted to enter an Apple ID - enter the ID that you created in step 3
At this point a I get a "Confirm your in-app purchase" pop-up box, with "Environment Sandbox" at the bottom. After I confirmed, my number of widgets was incremented Oh that was so good to see!!!
Note that on iTunes Connect my app has status "Prepare for Submission", and my in-app purchases have the status "Ready to Submit". I've also got a warning message "Your first In-App Purchase must be submitted with a new app version. Select it from the app’s In-App Purchases section and click Submit", but none of this stopped the test from working.
1) Create your app with IOS in-app purchases as outlined in LC's tutorial -
http://lessons.livecode.com/m/4069/l/18 ... e-appstore
The key field is the ProductID. Note that:
- in Android / Play Store the ProductID is prefixed by the app identifier (from StandAlone Settings); but
- in IOS / App Store the ProductID is NOT prefixed by the app identifier
2) Create an email address (e.g. on Gmail) for a test user
3) In iTunes Connect > Users & Roles > Sandbox Testers - Create a test user with the email address that you created in step 2. Note that you don't need to add any credit card / bank details.
4) Logon to the email address that you created in step 2, find the email from Apple, and verify your test user
5) On your test device - go into Settings > iTunes & App Store - and sign out of your current Apple ID. Do NOT sign back in with your test user ID.
I re-booted my test device after this step - but I don't know whether this was needed.
6) Use Xcode to load your app onto your test device.
7) Start your app on your test device; and press the in-app purchase button that you want to test. You will be prompted to enter an Apple ID - enter the ID that you created in step 3
At this point a I get a "Confirm your in-app purchase" pop-up box, with "Environment Sandbox" at the bottom. After I confirmed, my number of widgets was incremented Oh that was so good to see!!!
Note that on iTunes Connect my app has status "Prepare for Submission", and my in-app purchases have the status "Ready to Submit". I've also got a warning message "Your first In-App Purchase must be submitted with a new app version. Select it from the app’s In-App Purchases section and click Submit", but none of this stopped the test from working.