Thanks, Jamie. Excellent info.

How do you handle things if there are multiple purchases that have been made? 
Will multiple purchaseStateUpdate messages be sent one right after the other? 
Which is fine if you want to re-download everything all at once, but what if 
you don't? What would be really nice is if we could somehow retrieve a list of 
purchased products and then use something like:

mobileRestorePurchases productID

in order to have complete control over what gets restored. Are you aware of any 
way to do this?

Also, part of what I'd like to do is have a Restore Purchases button that is 
only visible if purchases have been made. But as far as I can tell, there is no 
reliable way to determine if purchases have been made on the device. Or am I 
completely missing something?

Thanks again,
Chris


On Nov 13, 2012, at 9:42 AM, Jamie Stuart <ja...@eurotalk.com> wrote:

> Chris,
> 
> 1] mobileRestorePurchases
> 2] assuming purchases exist, you'll receive a purchaseStateUpdate message 
> with the purchaseID from the app store
> 3] mobilePurchaseState(purchaseID) will then return the type "restored"
> 4] you can then mobilePurchaseConfirmDelivery purchaseID to confirm delivery 
> and do any processing you require.
> 
> See page 58 of the iOS release Notes. Below is a sample purchaseStateUpdate 
> handler
> 
> on purchaseStateUpdate purchaseID
>    switch mobilePurchaseState(purchaseID)
>        case "paymentReceived"
>            mobilePurchaseConfirmDelivery purchaseID
>            -- deal with a successful purchase
>            mobileDisablePurchaseUpdates
>            break
>        case "restored"
>            mobilePurchaseConfirmDelivery purchaseID
>            -- deal with a restored purchase
>            break
>        case "error"
>            answer "A problem occured during purchase handling:" & return & 
> return & mobilePurchaseError(purchaseID)
>            mobileDisablePurchaseUpdates
>            -- deal with a problematic purchase
>            break
>        case "cancelled"
>            mobileDisablePurchaseUpdates
>            -- deal with a cancelled purchase
>            break
>    end switch
> end purchaseStateUpdate
> 
> 
> Jamie, CMSNISO, EuroTalk
> 
> On 13 Nov 2012, at 12:47, Thomas McGrath III <mcgra...@mac.com> wrote:
> 
>> Not yet Chris,  but I am interested as well since this is on the horizon for 
>> me.
>> 
>> Hope you can get an answer here.
>> 
>> 
>> -- Tom McGrath III
>> http://lazyriver.on-rev.com
>> 3mcgr...@comcast.net
>> 
>> On Nov 12, 2012, at 3:21 PM, Chris Sheffield <cmsheffi...@icloud.com> wrote:
>> 
>>> No takers on this, huh? Isn't anyone else making use of in-app purchases?
>>> 
>>> On Nov 9, 2012, at 10:20 AM, Chris Sheffield <cmsheffi...@icloud.com> wrote:
>>> 
>>>> Does anyone out there have a step-by-step on how to do this? The docs 
>>>> don't make it very clear. I understand I need to issue the 
>>>> mobileRestorePurchases command, but what do I do after that? I'd like to 
>>>> be able to retrieve a list of product IDs of previous purchases so that I 
>>>> can have complete control over the restore process, but I'm not sure if 
>>>> that's possible.
>>>> 
>>>> Any pointers?
>>>> 
>>>> Thanks,
>>>> Chris
>>>> 
>>>> 
>>>> --
>>>> Chris Sheffield
>>>> Read Naturally, Inc.
>>>> www.readnaturally.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to