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

@@ -85,9 +85,25 @@
</div>
<% end %>
<div class="section">
<% if params[:user_id] %>
<p>You are gifting this account upgrade to <%= link_to user.pretty_name, user_path(params[:user_id]) %>.</p>
<% else %>
<p>You can also upgrade someone else's account for the same price. The easiest way is to go to their profile page and look for a "Gift Upgrade" link.</p>
<% end %>
</div>
<% if Danbooru.config.coinbase_api_key %>
<%= render "coinbase_payment" %>
<% end %>
<% if Danbooru.config.stripe_publishable_key %>
<% if CurrentUser.safe_mode? %>
<%= render "stripe_payment" %>
<% else %>
<%= render "stripe_payment_safebooru" %>
<% end %>
<% end %>
</div>
</div>