add stripe integration for safebooru

This commit is contained in:
r888888888
2014-10-28 11:05:21 -07:00
parent 8096fd388c
commit cbf48ad948
20 changed files with 337 additions and 31 deletions

View File

@@ -0,0 +1,8 @@
<p><strong>Upgrading from Gold to Platinum will only cost $20.</strong> If you have any further questions or concerns, feel free to contact me at <%= mail_to Danbooru.config.contact_email, nil, :encode => :javascript %>.</p>
<% if CurrentUser.user.level < User::Levels::GOLD %>
<%= stripe_button("Upgrade to Gold", 2000) %>
<%= stripe_button("Upgrade to Platinum", 4000) %>
<% elsif CurrentUser.user.level < User::Levels::PLATINUM %>
<%= stripe_button("Upgrade Gold to Platinum", 2000) %>
<% end %>