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:
parent
fa4b5638f1
commit
aca94e65c3
2 changed files with 2 additions and 0 deletions
|
@ -192,6 +192,7 @@ class MembersConfigProvider {
|
||||||
id: this._settingsCache.get('members_stripe_webhook_id'),
|
id: this._settingsCache.get('members_stripe_webhook_id'),
|
||||||
secret: this._settingsCache.get('members_stripe_webhook_secret')
|
secret: this._settingsCache.get('members_stripe_webhook_secret')
|
||||||
},
|
},
|
||||||
|
enablePromoCodes: this._config.get('enableStripePromoCodes'),
|
||||||
product: {
|
product: {
|
||||||
name: this._settingsCache.get('stripe_product_name')
|
name: this._settingsCache.get('stripe_product_name')
|
||||||
},
|
},
|
||||||
|
|
|
@ -115,5 +115,6 @@
|
||||||
"adminFrameProtection": true,
|
"adminFrameProtection": true,
|
||||||
"sendWelcomeEmail": true,
|
"sendWelcomeEmail": true,
|
||||||
"stripeDirect": false,
|
"stripeDirect": false,
|
||||||
|
"enableStripePromoCodes": false,
|
||||||
"portal": false
|
"portal": false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue