2018-03-25 17:20:54 +00:00
<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
2018-03-25 17:30:42 +00:00
<!-- settings/_pricing -->
<header class='pane-header'>
<h3>Pricing Plan</h3>
</header>
<div class='pane-inner'>
<p><strong>Tier:
<%= @nonprofit.billing_plan.name %>
(
$<%= Format::Currency.cents_to_dollars @nonprofit.billing_plan.amount %> <%= @nonprofit.billing_plan.interval || 'monthly'%>
<%= @nonprofit.billing_plan.percentage_fee > 0 ? ', ' + (@nonprofit.billing_plan.percentage_fee * 100).round(2).to_s + '%' : '' %>
)
</strong><br>
<em><small>Our processor (Stripe) assesses an additional 2.2% + $0.30 for each online payment.</small></em></p>
2019-11-05 19:38:36 +00:00
<% if @nonprofit.billing_plan.amount > 0 %>
2018-03-25 17:30:42 +00:00
<p><a class='u-color--red u-small' href='/nonprofits/<%=@nonprofit.id%>/billing_subscription/cancellation'>Unsubscribe from plan</a></p>
<p>
<strong>
<a href='/nonprofits/<%= @nonprofit.id %>/card/edit'>
Update payment method
</a>
</strong>
</p>
<% end %>
<% if @nonprofit.active_card %>
<hr>
<label>Payment Method</label>
<p>Current payment method for your nonprofit:
<strong><%= @nonprofit.active_card.name %></strong>
</p>
<% end %>
<p class='note u-marginTop--10'>If you have any questions about your current plan, please contact <a href='mailto:<%= Settings.devise.mailer_sender %>'><%= Settings.devise.mailer_sender %></a></p>
</div>