Can you give me full code example of IAP for character and gold purchase?

My thread didn’t get any reply since mid of october… :frowning:

So I think I would like to ask master in here to give me a full example code of IAP system that selling premium character and gold… please include how the code restore the purchase so the user could use the chara again without purchase again… also include how the code increase the amount of gold that already purchased…

Last time I tried was failed, you can see my code from my thread :
https://forums.coronalabs.com/topic/59461-purchased-success-but-no-callback-triggered-as-if-nothing-happened/

I do really appreciate your effort to write the full example code to teach newbie like me… thank you very much sir ! :’)

You can try to modify your code according to Corona Sample IAP app.

You can find it on your hard drive, in Corona folder.

Nobody can give you complete specific code, you can either buy Corona Enterprise and ask professional help, or for example hire roaminggamer on roaminggamer.com (I saw that he is correcting/helping with code - if I am not mistaken).

Good luck!

did you see my code? I did follow the tutorial, however after the purchase success, transactionCallBack() didn’t triggered at all… do you have any idea why? :’(

If you’re encountering issues with IAP, you could give IAP Badger a try. A lot of people (including RoamingGamer) use it to streamline the IAP process:

https://forums.coronalabs.com/topic/59137-iap-badger-a-unified-approach-to-in-app-purchases/

The Badger Rocks!

is this plugin like a framework to do IAP process? So I can use this code to replace all my IAP code?

You can try to modify your code according to Corona Sample IAP app.

You can find it on your hard drive, in Corona folder.

Nobody can give you complete specific code, you can either buy Corona Enterprise and ask professional help, or for example hire roaminggamer on roaminggamer.com (I saw that he is correcting/helping with code - if I am not mistaken).

Good luck!

did you see my code? I did follow the tutorial, however after the purchase success, transactionCallBack() didn’t triggered at all… do you have any idea why? :’(

If you’re encountering issues with IAP, you could give IAP Badger a try. A lot of people (including RoamingGamer) use it to streamline the IAP process:

https://forums.coronalabs.com/topic/59137-iap-badger-a-unified-approach-to-in-app-purchases/

The Badger Rocks!

is this plugin like a framework to do IAP process? So I can use this code to replace all my IAP code?