Sample Code

This website is truly great. (the best website I have ever seen!)
I almost visit it everyday.
People here are also very helpful and friendly, but
it would be better if the website can provide new developers more code samples.
Hopefully, my humble request could be heard.

:slight_smile:

Regards,
Henry [import]uid: 150748 topic_id: 28335 reply_id: 328335[/import]

I have been thinking publishing e-magazines with in-app purchase.
But I know nothing about in-app purchase.
It seems very complicated.
Could anyone share sample code with me?
Thank you in advance.
Henry
[import]uid: 150748 topic_id: 28335 reply_id: 114465[/import]

Hi, Henry, did you check the sample code that comes bundled with Corona SDK: SampleCode > Networking > InAppPurchase

Also, it would really help to read through the documentation carefully at least once:
http://developer.coronalabs.com/reference/in-app-purchases

You can also peruse In-App Purchase subforum: http://developer.coronalabs.com/forums/app-purchases

And this walkthrough helped me too:
http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/

Good luck.

Naomi [import]uid: 67217 topic_id: 28335 reply_id: 114488[/import]

FYI: @Naomi is a MASTER one at the IAP subject! .)

Cheers,
Rodrigo. [import]uid: 89165 topic_id: 28335 reply_id: 114518[/import]

Yes, I agree. I think she is!
:slight_smile:

Henry [import]uid: 150748 topic_id: 28335 reply_id: 114544[/import]

Hi Naomi,

Can in-app purchase be used to publish e-magazines?
In fact, I am not very sure.
Please advise.
Thank you in advance for your kind assistance.

Henry [import]uid: 150748 topic_id: 28335 reply_id: 114545[/import]

The thing is, Henry, I only know things I’ve worked on. I’ve implemented consumable and non-consumable items, but not subscription model that iOS IAP offers (and I don’t remember if Google Play offers subscription model.)

I don’t know exactly how you envision your e-magazines to work, but if you are thinking of delivering new content periodically, perhaps you could deliver it as non-consumable item (but then you would need some sort of content delivery system, I imagine.) Also… you could look into how IAP subscription model works – but that’s an area I’ve never ventured into.

Rodrigo @RSCdev, I bet you are as knowledgeable as I am (if not more) with IAP at this point :slight_smile:

Naomi [import]uid: 67217 topic_id: 28335 reply_id: 114550[/import]

@Naomi my friend,

I really appreciate that, but the truth is that am far from you regarding IAP for sure. :wink:

PS: BTW Ive loved the way youve helped me when I was setting up the IAP thing time ago. Really!

PS2: @Henry , I think that @Naomi is spot on one more time here when her talks about the “subscription” IAP thing or even going through the “non-consumable” one.
Thanks Devs,
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 28335 reply_id: 114554[/import]

Between the two of you you could probably write a book on IAP!

@Henry - glad you like the site, I think we have a great community. For more newbie resources see learningcorona.com - that has a bunch.

Peach :slight_smile: [import]uid: 52491 topic_id: 28335 reply_id: 114674[/import]