IAP in App Store
J. Landman Gay
jacque at hyperactivesw.com
Mon Sep 20 12:17:14 EDT 2021
After the login dialog, which worked fine, I got no status response on the
first attempt. I realized that I was asking for a nonexistent product (I'd
changed the store products during my experiments) and when I asked for a
now existing one it went through fine. I got the sandbox purchase dialog
and canceled the first attempt, which worked and I got a "cancelled"
status. Then I purchased it again and got the "paymentReceived" status.
All the handlers are in the card script but that seems to be working okay
given that I did receive the status for a successful transaction. But I'd
have expected an "unknown sku" error on the first attempt. I could move
everything to the stack script I suppose, but it's nice to have it all
encapsulated on the card.
In case anyone is interested, my husband has come out into view again.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 20, 2021 6:20:24 AM panagiotis m via use-livecode
<use-livecode at lists.runrev.com> wrote:
> Hello Jacque,
> Nice, I'll make sure this note is added to the docs at least. Ideally we'll
> fix it in the engine too, so as it throws an error if the 3rd param is
> Now, you said you got the login dialog. What happened next, after you
> entered your test apple ID details? Did you get a dialog for the in-app
> purchase, where the price was listed, and you had to choose Buy or Cancel?
> Or did you get an error dialog?
> Also, where is the handler. for purchaseStateUpdate? Is it in the stack
> script? I think it has to be in the stack script
> Kind regards,
> On Sun, 19 Sept 2021 at 19:41, J. Landman Gay via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>> Even a note in the documentation would help. I spent two weeks trying to
>> figure out the problem. Was it my store setup? The iPhone? My script,
>> was based on the lesson example? Did I set up my store products wrong?
>> where should I look?
>> By the time I posted here I was a walking mass of frustration and my
>> husband knew to hide in a closet.
>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On September 19, 2021 2:24:18 AM Curry Kenworthy via use-livecode
>> <use-livecode at lists.runrev.com> wrote:
>>>> If the third param is omitted, the script compiles okay
>>>> but apparently aborts with no error message
>>>> and no information when the app runs on the device.
>>> Hey LC Team: This may be not merely a bug,
>>> but also a "bad habit" in coding practice.
>>> A habit that leads to multiple bugs.
>>> I've seen similar "aborts" that halt execution
>>> but otherwise fail without warning or info.
>>> The LCS equivalent would be a tendency
>>> to overuse "exit to top" in situations
>>> where a "return" or an error bailout
>>> would be more appropriate.
>>> Perhaps only intended as a temporary placeholder
>>> and forgotten, but either way, a better habit
>>> would reduce the number of future bugs/glitches
>>> that follow this pattern. Thanks....
>>> Best wishes,
>>> Curry Kenworthy
>>> Custom Software Development
>>> "Better Methods, Better Results"
>>> LiveCode Training and Consulting
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode