Files
danbooru/app/views/user_upgrades/_stripe_payment.html.erb
2018-11-12 10:28:48 -08:00

22 lines
782 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() {
$(".stripe").submit(function(e) {
window._paq = window._paq || [];
window._paq.push(['trackEvent', 'accounts', 'clickedAccountUpgrade']);
});
});
</script>
<% end %>