0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Added stripeAutomaticTax feature flag as private beta

This will be used to test the use of the Stripe Tax feature during
development. We want it behind a private beta flag so that we can
stick it in production without causing problems with payment systems
for existing sites.
This commit is contained in:
Fabien "egg" O'Carroll 2023-02-28 14:07:32 +07:00
parent 35c78fd718
commit 6a093f4549
3 changed files with 16 additions and 1 deletions

View file

@ -71,6 +71,7 @@ export default class FeatureService extends Service {
@feature('emailErrors') emailErrors; @feature('emailErrors') emailErrors;
@feature('milestoneEmails') milestoneEmails; @feature('milestoneEmails') milestoneEmails;
@feature('websockets') websockets; @feature('websockets') websockets;
@feature('stripeAutomaticTax') stripeAutomaticTax;
_user = null; _user = null;

View file

@ -252,6 +252,19 @@
</div> </div>
</div> </div>
</div> </div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Stripe Automatic Tax</h4>
<p class="gh-expandable-description">
Use Stripe Automatic Tax at Stripe Checkout. Needs to be enabled in Stripe
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="stripeAutomaticTax" />
</div>
</div>
</div>
</div> </div>
</div> </div>
{{/if}} {{/if}}

View file

@ -37,7 +37,8 @@ const ALPHA_FEATURES = [
'urlCache', 'urlCache',
'lexicalEditor', 'lexicalEditor',
'websockets', 'websockets',
'webmentionEmails' 'webmentionEmails',
'stripeAutomaticTax'
]; ];
module.exports.GA_KEYS = [...GA_FEATURES]; module.exports.GA_KEYS = [...GA_FEATURES];