Sorry, here it is.
--Create the catalogue local catalogue = { --Information about the product on the app stores products = { --removeAds is the product identifier. --Always use this identifier to talk to IAP Badger about the purchase. A5KPoints = { --A list of product names or identifiers specific to apple's App Store or Google Play. productNames = { apple="5k\_Points", google="5K\_Points", amazon="5K\_Points"}, --The product type productType = "non-consumable", --This function is called when a purchase is complete. onPurchase=function() iap.setInventoryValue("unlock", true) end, } }, --Information about how to handle the inventory item inventoryItems = { unlock = { productType="non-consumable" } } } --This table contains all of the options we need to specify in this example program. local iapOptions = { --The catalogue generated above catalogue=catalogue, --The filename in which to save the inventory filename="inventory.txt", } --Initialise IAP badger iap.init(iapOptions) --------------------------------- -- -- Making purchases -- --------------------------------- --Called when the relevant app store has completed the purchase --At this point, "unlock" has already been added to the user inventory. local function purchaseListener(product ) --Tell the user their purchase was successful native.showAlert("Purchase complete", "Your unlock purchase was successful.") end --Tell IAP badger to initiate a purchase iap.purchase("A5KPoints", purchaseListener)