From 4023f1f4c13a42344bca3811ae6adf9012d649d0 Mon Sep 17 00:00:00 2001 From: jayakrishnanes <43532742+jayakrishnanes@users.noreply.github.com> Date: Mon, 3 Feb 2020 10:24:32 +0530 Subject: [PATCH] Update index-android.js --- www/index-android.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/index-android.js b/www/index-android.js index 38ec66a..11371ee 100644 --- a/www/index-android.js +++ b/www/index-android.js @@ -198,9 +198,9 @@ inAppPurchase.restorePurchases = function () { arr = purchases.map(function (val) { return { productId: val.productId, - state: val.state, + state: val.purchaseState, transactionId: val.orderId, - date: val.date, + date: val.purchaseTime, type: val.type, productType: val.type, signature: val.signature, @@ -216,4 +216,4 @@ inAppPurchase.getReceipt = function () { return Promise.resolve(''); }; -module.exports = inAppPurchase; \ No newline at end of file +module.exports = inAppPurchase;