From 11e246a93a6b6dcc30359735a8205ed4cd01ce4c Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Wed, 25 Sep 2019 13:43:25 +0700 Subject: [PATCH] Allowed checkout flow to be started without member no-issue This will allow non-logged in members to start the stripe checkout flow, which will result in a webhook being sent --- core/server/public/members.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/public/members.js b/core/server/public/members.js index 218f8b620f..3b3e3bdbd5 100644 --- a/core/server/public/members.js +++ b/core/server/public/members.js @@ -57,7 +57,7 @@ Array.prototype.forEach.call(document.querySelectorAll('[data-members-plan]'), f credentials: 'same-origin' }).then(function (res) { if (!res.ok) { - throw new Error('Could not get identity token'); + return null; } return res.text(); }).then(function (identity) {