add stripe integration for safebooru
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
module UserUpgradesHelper
|
||||
def stripe_button(desc, cost)
|
||||
def stripe_button(desc, cost, user)
|
||||
html = %{
|
||||
<form action="#{user_upgrade_path}" method="POST" class="stripe">
|
||||
<input type="hidden" name="authenticity_token" value="#{form_authenticity_token}">
|
||||
#{hidden_field_tag(:desc, desc)}
|
||||
#{hidden_field_tag(:user_id, user.id)}
|
||||
<script
|
||||
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
|
||||
data-key="#{Danbooru.config.stripe_publishable_key}"
|
||||
|
||||
Reference in New Issue
Block a user