diff options
-rw-r--r-- | app/models/user.rb | 9 | ||||
-rw-r--r-- | engines/billing/app/views/payments/new.html.erb | 4 |
2 files changed, 6 insertions, 7 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index b5bbadf..52eabf2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -176,11 +176,10 @@ class User < CouchRest::Model::Base @message.save if @message end - - def has_payment_info? - braintree_customer_id - end - + + # def has_payment_info? + # braintree_customer_id + # end protected ## diff --git a/engines/billing/app/views/payments/new.html.erb b/engines/billing/app/views/payments/new.html.erb index 3cdda01..002377c 100644 --- a/engines/billing/app/views/payments/new.html.erb +++ b/engines/billing/app/views/payments/new.html.erb @@ -2,8 +2,8 @@ <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? %> + <%# 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? %> <div id="payment-form"></div> <div id='coinbase-container-id'></div> <input type="text" name="amount" placeholder="Enter amount"> |