add stripe integration for safebooru

This commit is contained in:
r888888888
2015-01-22 15:55:35 -08:00
parent 447597b665
commit b2b14cba98
11 changed files with 113 additions and 24 deletions

View File

@@ -0,0 +1,10 @@
<div class="section">
<p>You can pay with a credit 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>