Skip to content

Commit

Permalink
#149 and #150
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrue2 committed Jan 10, 2018
1 parent 06fb981 commit 640104a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ module.exports.validatePurchase = function (dPubkey, receipt, cb) {
verbose.log(NAME, 'Failed against live public key:', error);
verbose.log(NAME, 'Try validate against sandbox public key:', pubkey);
// now try sandbox
// we are stringifying receipt to b/c we already parsed receipt...
receipt = JSON.stringify(receipt);
validateMethod(function (error2, data) {
if (error2) {
verbose.log(NAME, 'Failed against sandbox public key:', error2);
Expand All @@ -253,7 +255,6 @@ module.exports.validatePurchase = function (dPubkey, receipt, cb) {
});
return;
}

verbose.log(NAME, 'Validation against live public key successful:', data);
// live worked
// this here maybe deprecated b/c we now have subscription validation before this
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"xmldom": "0.1.19",
"xml-crypto": "0.8.2",
"xml-crypto": "0.10.1",
"request": "2.83.0"
},
"devDependencies": {
Expand Down

0 comments on commit 640104a

Please sign in to comment.