in app purchase for in game currency

I read the corona docs but I’m still lost can someone show Mr how to award currency for iap. .

Does the whole store code go In the main or in a separate file?

when I call store.purchase how do I know when to and where to award currency?

Hi @Xepsdashtx,

Did you read the guide on IAP?
 

http://docs.coronalabs.com/guide/monetization/IAP/index.html

Hi @Xepsdashtx,

Did you read the guide on IAP?
 

http://docs.coronalabs.com/guide/monetization/IAP/index.html