Files
danbooru/app/views/user_upgrades/_stripe_payment.html.erb
2018-11-02 17:03:24 -07:00

21 lines
744 B
Plaintext

<div class="section">
<p>You can pay with a credit or debit card. Safebooru uses <a href="https://www.stripe.com">Stripe</a> as a payment intermediary so none of your personal information will be stored on the site.</p>
<% if user.level < User::Levels::GOLD %>
<%= stripe_button("Upgrade to Gold", 2000, user) %>
<%= stripe_button("Upgrade to Platinum", 4000, user) %>
<% elsif user.level < User::Levels::PLATINUM %>
<%= stripe_button("Upgrade Gold to Platinum", 2000, user) %>
<% end %>
</div>
<% content_for(:html_header) do %>
<script>
$(function() {
if (typeof window.mixpanel === 'object') {
window.mixpanel.track_forms(".stripe", "Clicked Account Upgrade");
}
});
</script>
<% end %>