From c84bdf2406830f3cacba3bf5d23378f69cf92e2f Mon Sep 17 00:00:00 2001 From: Almir Kadric Date: Thu, 29 Jan 2015 13:42:32 +0900 Subject: [PATCH] quick fix to remove assertions from the library. These should be handled application side. --- .gitignore | 1 + lib/google/index.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3c3629e..7a1537b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +.idea node_modules diff --git a/lib/google/index.js b/lib/google/index.js index f4d5f35..4bc8849 100644 --- a/lib/google/index.js +++ b/lib/google/index.js @@ -59,8 +59,6 @@ exports.verifyPayment = function (payment, cb) { var responseObject; try { responseObject = JSON.parse(responseString); - assert.equal(responseObject.purchaseState, 0, 'purchaseCancelled'); - assert.equal(responseObject.consumptionState, 1, 'notConsumed'); } catch (e) { return cb(e); }