In-App Purchases Help!

So I want to have in-app purchases in my game, but the explanation on the site is very confusing. Can someone just show me a VERY simple way of making an in-app purchase? I want something simple like this:

function buy(event)  
if event.phase == "began" then  
--BUY THE IN-APP PURCHASE WITH AN IDENTIFIER CODE LIKE "com.test.inapppurchase.one"  
end  
end  
  
button:addEventListener("touch",buy)  

And also, how would you make it so that when you buy the in-app purchase, everything in the game is replaced with HD pictures (which I have on my computer)? Thanks! [import]uid: 38001 topic_id: 12254 reply_id: 312254[/import]

@anish,
you might want to consider In-App purchases till the patent problems are sorted. Just my two bits.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 12254 reply_id: 44627[/import]

What patent problems? [import]uid: 38001 topic_id: 12254 reply_id: 44693[/import]

@anish,
if you are unaware, then you are better off being so…

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 12254 reply_id: 44716[/import]