Skip to content

Instantly share code, notes, and snippets.

@ttaylor
ttaylor / storekit.js
Last active January 5, 2016 20:15
Working Ti.Storekit example for 3.2.2GA. Has now been approved by Apple. This is for non-consummable on-device IAPs only.
var Storekit = require('ti.storekit'),
DZDynamicType = require('com.dezinezync.dynamictype'),
lang = Ti.App.Properties.getString('language');
Storekit.receiptVerificationSandbox = (Ti.App.deployType !== 'production');
Storekit.bundleVersion = 2.3.1; //TODO set current bundle version here
Storekit.bundleIdentifier = bundle; //TODO set bundle id here
var verifyingReceipts = true;
var win = Ti.UI.createWindow({