From 5190cfcf67d05655255686052d1e7fbd8b2efe74 Mon Sep 17 00:00:00 2001 From: Richard Garner Date: Wed, 9 Mar 2022 22:43:20 +1100 Subject: [PATCH] checking for existence of purchaseToken property on the string rather than the parsed object, so it always falls through to amazon --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9f85c03..5a2ee5f 100644 --- a/index.js +++ b/index.js @@ -104,7 +104,7 @@ module.exports.getService = function (receipt) { } if (parsed.signature) { return module.exports.GOOGLE; - } else if (receipt.purchaseToken) { + } else if (parsed.purchaseToken) { return module.exports.GOOGLE; } else { return module.exports.AMAZON;