summaryrefslogtreecommitdiff
path: root/engines/billing/app/views
diff options
context:
space:
mode:
authorclaucece <soficeli0@gmail.com>2015-09-18 17:33:05 -0500
committerclaucece <soficeli0@gmail.com>2015-10-05 22:39:30 -0500
commitf55fd33542c68fc8fc4519d622a41ef9517ebee3 (patch)
treece6b48fa4d6d01476fc5cc3ff42e33733ce26059 /engines/billing/app/views
parente4a012e09a6b16438bd1286b2057aed916a106f7 (diff)
added customers, recurring payment and payment_info
Diffstat (limited to 'engines/billing/app/views')
-rw-r--r--engines/billing/app/views/payments/new.html.erb6
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">