diff options
Diffstat (limited to 'engines/billing/app/views/payments/new.html.erb')
-rw-r--r-- | engines/billing/app/views/payments/new.html.erb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/billing/app/views/payments/new.html.erb b/engines/billing/app/views/payments/new.html.erb index 5eb3e35..03fc5b9 100644 --- a/engines/billing/app/views/payments/new.html.erb +++ b/engines/billing/app/views/payments/new.html.erb @@ -1,9 +1,13 @@ <h2 class="mbs">New Donation</h2> -<p>Please enter your donation details (this is a donation and will not be applied towards your account):</p> <br> <%= form_tag confirm_payment_path, id: "checkout-form" do %> <%# add migration to user first. Not sure about the anonymous part. %> <%# render 'customer_form' unless current_user.has_payment_info? && current_user.where.not.is_anonymous? %> + <% if current_user and !current_user.has_payment_info? %> + <%= render 'customer_form' unless @anonymous_user%> + <% end %> + <br> + <p>Please enter your donation details (this is a donation and will not be applied towards your account):</p> <div id="payment-form"></div> <div id='coinbase-container-id'></div> <input type="text" name="amount" placeholder="Enter amount"> |