In-app purchase options

Chris Sheffield cmsheffield at icloud.com
Wed Oct 2 16:03:25 EDT 2013


Christer,

It's definitely not an easy process, as it sounds like you've discovered.

First of all, take a look at this LiveCode lesson if you haven't already http://lessons.runrev.com/s/lessons/m/4069/l/48771-how-do-i-implement-in-app-purchases-in-livecode. This helped me to get up and going. Sounds like you're wanting some different subscription options, which should be fairly easy to set up. I can help with more specific details if necessary, but it is a rather lengthy process, so I won't do so here unless you need it. Also, my experience is only with iOS. I'm not familiar enough with Android to know how the process works on that platform.

However, I will say that it is indeed possible to test in-app purchases *before* submitting your app to the app store. I don't believe that lesson mentions it, so in order to do so you simply have to create test users in iTunes Connect under Manage Users. Again, this can be a little tricky to set up, as it involves submitting a version of your app (but it doesn't even have to be complete), then rejecting it yourself so it doesn't go through the review process. At that point, you can create your in-app purchases in iTunes Connect, then create your test users, and then you can test your code in your app on your device. You have to make sure to log out of your Apple ID on the device via Settings, and *do not* log in with a test user account there. When you go to initiate a purchase in your app, you should get a screen like that shown in the lesson I mentioned above (it will indicate it's a sandbox environment). Then it will prompt you for log in credentials. At that point, you enter a test user name and password. If all goes well, you'll get the appropriate message(s) that the purchase was successful, etc., etc.

So try working through that lesson first and make sure you can get that working, then apply it to your own app. Hopefully everything will go well. I realize I've been a little vague, so if I can be of further help, let me know.

Chris

--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com



On Oct 2, 2013, at 12:50 PM, Christer Pyyhtiä <christer at mindcrea.com> wrote:

> It may be I red the manuals like a devil in the bible, but cannot figure out the exact process of getting in place an in-app purchase process of alternative options for the user.  What is the exact and correct order of statements to be put in place. The difficulty is in there are no ways of doing testing these before shoveling your app into the library. True for both iOS and Android.
> 
> So, want to have three options for the use to select, run this for x months, y months or forever. All three have different pricing.
> 
> What is the exact sequence regarding the mobilePurchaseCreate, mobilePurchaseSet and mobilepurchaseSendRequest commands and what are the different purchased, property and value and especially where those need to be issued (including setting the standalone app settings for iOS and Android).
> 
> It indeed is a lawyer may read the manuals and come to different opinions how to do this. A rewrite with a proven example is needed.
> 
> Any help from anyone?
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list