From aca94e65c3ca586d73e3beafb31d6eb5ff6eb0ee Mon Sep 17 00:00:00 2001 From: Kristian Freeman Date: Mon, 21 Sep 2020 07:15:41 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Added=20support=20for=20Stripe=20pr?= =?UTF-8?q?omo=20codes=20in=20config=20(#12149)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #12111 * Added default value in defaults.json * Passed config to members-api module refs: https://github.com/TryGhost/Members/pull/194 --- core/server/services/members/config.js | 1 + core/shared/config/defaults.json | 1 + 2 files changed, 2 insertions(+) diff --git a/core/server/services/members/config.js b/core/server/services/members/config.js index ab58b3f9ac..f03cf3f0db 100644 --- a/core/server/services/members/config.js +++ b/core/server/services/members/config.js @@ -192,6 +192,7 @@ class MembersConfigProvider { id: this._settingsCache.get('members_stripe_webhook_id'), secret: this._settingsCache.get('members_stripe_webhook_secret') }, + enablePromoCodes: this._config.get('enableStripePromoCodes'), product: { name: this._settingsCache.get('stripe_product_name') }, diff --git a/core/shared/config/defaults.json b/core/shared/config/defaults.json index 7d94776888..ac9ba3e15e 100644 --- a/core/shared/config/defaults.json +++ b/core/shared/config/defaults.json @@ -115,5 +115,6 @@ "adminFrameProtection": true, "sendWelcomeEmail": true, "stripeDirect": false, + "enableStripePromoCodes": false, "portal": false }