2019-10-09 13:02:56 +03:00
<div class="flex flex-column b--whitegrey bt">
2019-10-11 11:20:30 +03:00
<section class="bb b--whitegrey pa5">
<div class="flex justify-between">
<div>
2019-10-16 11:27:46 +03:00
<h4 class="gh-setting-title">Connect to Stripe</h4>
<p class="gh-setting-desc pa0 ma0">Configure API keys to create subscriptions and take payments</p>
2019-10-11 11:20:30 +03:00
</div>
<div>
<button type="button" class="gh-btn" {{ action ( toggle "membersStripeOpen" this ) }} data-test-toggle-membersstripe><span> {{ if membersStripeOpen "Close" "Expand" }} </span></button>
</div>
2019-10-09 13:02:56 +03:00
</div>
2019-10-11 11:20:30 +03:00
{{ # liquid-if membersStripeOpen }}
2019-10-18 12:44:45 +03:00
<div class="flex flex-column flex-row-l items-start justify-between mb4 mt6">
<div class="w-100 w-50-l">
2019-10-16 20:54:49 +03:00
<div class="mb4">
<label class="fw6 f8">Stripe Publishable key</label>
{{ gh-text-input
2019-10-16 09:15:14 +03:00
type="password"
2019-10-11 11:20:30 +03:00
value=(readonly subscriptionSettings.stripeConfig.public_token)
input=(action "setSubscriptionSettings" "public_token")
2019-10-16 09:15:14 +03:00
class="mt1 password"
2019-10-11 11:20:30 +03:00
}}
2019-10-16 20:54:49 +03:00
</div>
2019-10-18 12:44:45 +03:00
<div class="nudge-top--3">
2019-10-16 20:54:49 +03:00
<label class="fw6 f8 mt4">Stripe Secret key</label>
{{ gh-text-input
2019-10-16 09:15:14 +03:00
type="password"
2019-10-11 11:20:30 +03:00
value=(readonly subscriptionSettings.stripeConfig.secret_token)
input=(action "setSubscriptionSettings" "secret_token")
2019-10-16 09:15:14 +03:00
class="mt1 password"
2019-10-11 11:20:30 +03:00
}}
2019-10-16 20:54:49 +03:00
<a href="https://dashboard.stripe.com/account/apikeys" target="_blank" class="mt1 fw4 f8">
Find your Stripe API keys here »
</a>
</div>
</div>
2019-10-18 12:44:45 +03:00
<div class="ml0 ml5-l mt6">
<div class="gh-members-stripe-info">
<div class="gh-members-stripe-info-header">
<h4>How you get paid</h4>
2019-10-16 20:54:49 +03:00
{{ svg-jar "stripe-verified-partner-badge" class = "gh-members-stripe-badge" }}
</div>
<p class="f8 mt2 mb0">
Stripe is our exclusive direct payments partner.<br />
2019-10-19 16:07:54 +03:00
Ghost collects <strong>no fees</strong> on any payments! If you don’ t have a Stripe account yet, you can <a href="https://stripe.com" target="_blank" rel="noopener" class="gh-members-stripe-link">sign up here</a>.
2019-10-16 20:54:49 +03:00
</p>
</div>
2019-10-09 13:02:56 +03:00
</div>
2019-10-16 20:54:49 +03:00
</div>
2019-10-11 11:20:30 +03:00
{{ / liquid-if }}
</section>
<section class="bb b--whitegrey pa5">
<div class="flex justify-between">
<div>
2019-10-16 11:27:46 +03:00
<h4 class="gh-setting-title">Subscription pricing</h4>
<p class="gh-setting-desc pa0 ma0">Set monthly and yearly recurring subscription prices</p>
2019-10-11 11:20:30 +03:00
</div>
<div>
<button type="button" class="gh-btn" {{ action ( toggle "membersPricingOpen" this ) }} data-test-toggle-memberspricing><span> {{ if membersPricingOpen "Close" "Expand" }} </span></button>
2019-10-09 13:02:56 +03:00
</div>
</div>
2019-10-16 11:27:46 +03:00
2019-10-11 11:20:30 +03:00
{{ # liquid-if membersPricingOpen }}
2019-10-21 14:09:56 +03:00
<div class="w-100 w-50-l flex flex-column flex-row-ns mt8">
<div class="w-100 w-50-ns mr3-ns">
2019-10-11 11:20:30 +03:00
{{ # gh-form-group }}
<label class="fw6 f8">Monthly price</label>
2019-10-16 22:35:06 +03:00
<div class="flex items-center justify-center mt1 gh-input-group gh-labs-price-label">
2019-10-11 11:20:30 +03:00
{{ gh-text-input
2019-10-16 22:35:06 +03:00
value=(readonly subscriptionSettings.stripeConfig.plans.monthly.dollarAmount)
type="number"
input=(action "setSubscriptionSettings" "month")
}}
<span class="gh-input-append">USD/month</span>
2019-10-11 11:20:30 +03:00
</div>
{{ / gh-form-group }}
</div>
2019-10-21 14:09:56 +03:00
<div class="w-100 w-50-ns ml2-ns">
2019-10-11 11:20:30 +03:00
{{ # gh-form-group class = "description-container" }}
<label class="fw6 f8">Yearly price</label>
2019-10-16 22:35:06 +03:00
<div class="flex items-center justify-center mt1 gh-input-group gh-labs-price-label">
2019-10-11 11:20:30 +03:00
{{ gh-text-input
value=(readonly subscriptionSettings.stripeConfig.plans.yearly.dollarAmount)
type="number"
input=(action "setSubscriptionSettings" "year")
}}
2019-10-20 11:44:17 +03:00
<span class="gh-input-append">USD/year</span>
2019-10-11 11:20:30 +03:00
</div>
{{ / gh-form-group }}
</div>
</div>
2019-10-16 11:27:46 +03:00
<div class="f8 fw4 midgrey">Currently only USD is supported, more currencies <a href="https://ghost.org/docs/members/" target="_blank" rel="noopener">coming soon</a></div>
2019-10-11 11:20:30 +03:00
{{ / liquid-if }}
2019-10-09 13:02:56 +03:00
</section>
2019-10-11 11:20:30 +03:00
<section class="bb b--whitegrey pa5">
<div class="flex justify-between">
<div>
2019-10-16 11:27:46 +03:00
<h4 class="gh-setting-title">Allow free member signup</h4>
<p class="gh-setting-desc pa0 ma0">If disabled, members can only be signed up via payment checkout or API integration</p>
2019-10-11 11:20:30 +03:00
</div>
<div>
<div class="for-switch">
2019-10-11 11:34:39 +03:00
<label class="switch" for="members-allow-self-signup"
{{ action "setSubscriptionSettings" "allowSelfSignup" bubbles = "false" }} >
<input type="checkbox" checked= {{ subscriptionSettings .allowSelfSignup }} class="gh-input"
onclick= {{ action "setSubscriptionSettings" "allowSelfSignup" }}
data-test-checkbox="members-allow-self-signup">
2019-10-11 11:20:30 +03:00
<span class="input-toggle-component mt1"></span>
</label>
</div>
2019-10-09 13:02:56 +03:00
</div>
</div>
2019-10-11 11:20:30 +03:00
</section>
2019-10-09 13:02:56 +03:00
2019-10-11 11:20:30 +03:00
<section class="bb b--whitegrey pa5">
<div class="flex justify-between">
<div>
<h4 class="gh-setting-title">Default post access</h4>
2019-10-16 11:27:46 +03:00
<p class="gh-setting-desc pa0 ma0">When a new post is created, who should have access to it?</p>
2019-10-11 11:20:30 +03:00
</div>
<div>
<button type="button" class="gh-btn" {{ action ( toggle "membersPostAccessOpen" this ) }} data-test-toggle-memberspostaccess><span> {{ if membersPostAccessOpen "Close" "Expand" }} </span></button>
2019-10-09 13:02:56 +03:00
</div>
</div>
2019-10-16 11:27:46 +03:00
2019-10-11 11:20:30 +03:00
{{ # liquid-if membersPostAccessOpen }}
2019-10-16 11:27:46 +03:00
<div class="flex flex-column w-50 flex mt8">
2019-10-11 11:20:30 +03:00
<div class="gh-radio {{ if ( eq settings .defaultContentVisibility "public" ) "active" }} "
{{ action "setDefaultContentVisibility" "public" on = "click" }} >
<div class="gh-radio-button" data-test-publishmenu-unpublished-option></div>
<div class="gh-radio-content">
2019-10-16 11:27:46 +03:00
<div class="gh-radio-label">Public<br>
<small class="midgrey">All site visitors to your site, no login required</small></div>
2019-10-11 11:20:30 +03:00
</div>
</div>
2019-10-16 11:27:46 +03:00
2019-10-11 11:20:30 +03:00
<div class="gh-radio {{ if ( eq settings .defaultContentVisibility "members" ) "active" }} "
{{ action "setDefaultContentVisibility" "members" on = "click" }} >
<div class="gh-radio-button" data-test-publishmenu-published-option></div>
<div class="gh-radio-content">
2019-10-16 11:27:46 +03:00
<div class="gh-radio-label">Members only<br>
<small class="midgrey">All logged-in members</small></div>
2019-10-11 11:20:30 +03:00
</div>
</div>
2019-10-16 11:27:46 +03:00
2019-10-11 11:20:30 +03:00
<div class="gh-radio {{ if ( eq settings .defaultContentVisibility "paid" ) "active" }} "
{{ action "setDefaultContentVisibility" "paid" on = "click" }} >
<div class="gh-radio-button" data-test-publishmenu-published-option></div>
<div class="gh-radio-content">
2019-10-16 11:27:46 +03:00
<div class="gh-radio-label">Paid-members only<br>
<small class="midgrey">Only logged-in members with an active Stripe subscription</small></div>
2019-10-11 11:20:30 +03:00
</div>
2019-10-09 13:02:56 +03:00
</div>
</div>
2019-10-11 11:20:30 +03:00
{{ / liquid-if }}
2019-10-09 13:02:56 +03:00
</section>
2019-10-11 11:20:30 +03:00
<section class="bb b--whitegrey pa5">
<div class="flex justify-between">
<div>
2019-10-16 11:27:46 +03:00
<h4 class="gh-setting-title">Email settings</h4>
<p class="gh-setting-desc pa0 ma0">Customise signup, signin and subscription emails</p>
2019-10-11 11:20:30 +03:00
</div>
<div>
<button type="button" class="gh-btn" {{ action ( toggle "membersEmailOpen" this ) }} data-test-toggle-membersemail><span> {{ if membersEmailOpen "Close" "Expand" }} </span></button>
</div>
2019-10-09 13:02:56 +03:00
</div>
2019-10-16 11:27:46 +03:00
2019-10-11 11:20:30 +03:00
{{ # liquid-if membersEmailOpen }}
2019-10-21 14:09:56 +03:00
<div class="flex flex-column w-100 w-50-l flex mt8">
2019-10-09 13:02:56 +03:00
{{ # gh-form-group }}
2019-10-16 11:27:46 +03:00
<label class="fw6 f8">From Address</label>
2019-10-16 22:35:06 +03:00
<div class="flex items-center justify-center mt1 gh-input-group">
2019-10-09 13:02:56 +03:00
{{ gh-text-input
value=(readonly subscriptionSettings.fromAddress)
input=(action "setSubscriptionSettings" "fromAddress")
2019-10-11 11:20:30 +03:00
class="w20"
2019-10-09 13:02:56 +03:00
}}
2019-11-07 13:46:02 +03:00
<span class="gh-input-append"> @ {{ blogDomain }} </span>
2019-10-09 13:02:56 +03:00
</div>
2019-10-16 11:27:46 +03:00
<div class="f8 fw4 midgrey mt1">Your members will receive system emails from this address</div>
2019-10-09 13:02:56 +03:00
{{ / gh-form-group }}
2019-11-05 14:23:08 +03:00
{{ # if hasMailgunAPIKeyOption }}
{{ # gh-form-group }}
<label class="fw6 f8">Mailgun API key</label>
{{ gh-text-input
type="password"
value=(readonly subscriptionSettings.mailgunApiKey)
input=(action "setSubscriptionSettings" "mailgunApiKey")
class="mt1 password"
2019-11-07 07:47:17 +03:00
autocomplete="new-password"
2019-11-05 14:23:08 +03:00
}}
2019-11-07 07:47:17 +03:00
<a href="https://app.mailgun.com/app/account/security/api_keys" target="_blank" class="mt1 fw4 f8">
2019-11-05 14:23:08 +03:00
Find your Mailgun API keys here »
</a>
{{ / gh-form-group }}
2019-11-07 07:31:43 +03:00
{{ # gh-form-group }}
<label class="fw6 f8">Mailgun domain</label>
{{ gh-text-input
value=(readonly subscriptionSettings.mailgunDomain)
input=(action "setSubscriptionSettings" "mailgunDomain")
class="mt1"
}}
{{ / gh-form-group }}
2019-11-05 14:23:08 +03:00
{{ / if }}
2019-10-09 13:02:56 +03:00
</div>
2019-10-11 11:20:30 +03:00
{{ / liquid-if }}
</section>
2019-10-09 13:02:56 +03:00
</div>