mirror of
https://github.com/HackPlan/node-iap.git
synced 2026-01-12 17:02:41 +08:00
quick fix to remove assertions from the library. These should be handled application side.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
.idea
|
||||
node_modules
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user