From 9b6cd65b9d7dd8080cc8cfaaf4cc582a869212a3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 31 May 2015 15:12:58 -0400 Subject: [PATCH] normalize program object --- dashboard-ui/thirdparty/cordova/android/iap.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/thirdparty/cordova/android/iap.js b/dashboard-ui/thirdparty/cordova/android/iap.js index e762eb55b8..f5bfb841c8 100644 --- a/dashboard-ui/thirdparty/cordova/android/iap.js +++ b/dashboard-ui/thirdparty/cordova/android/iap.js @@ -38,11 +38,16 @@ return MainActivity.beginPurchase(id); } + function onPurchaseComplete(result) { + alert(result); + } + window.IapManager = { isPurchaseAvailable: isPurchaseAvailable, hasPurchased: hasPurchased, updateProduct: updateProductInfo, - beginPurchase: beginPurchase + beginPurchase: beginPurchase, + onPurchaseComplete: onPurchaseComplete }; NativeIapManager.isPurchased(unlockId, "window.IapManager.updateProduct");