0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added support for Stripe promo codes in config (#12149)

closes #12111 

* Added default value in defaults.json
* Passed config to members-api module

refs: https://github.com/TryGhost/Members/pull/194
This commit is contained in:
Kristian Freeman 2020-09-21 07:15:41 -05:00 committed by GitHub
parent fa4b5638f1
commit aca94e65c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -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')
},

View file

@ -115,5 +115,6 @@
"adminFrameProtection": true,
"sendWelcomeEmail": true,
"stripeDirect": false,
"enableStripePromoCodes": false,
"portal": false
}