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;