summaryrefslogtreecommitdiff
path: root/engines/billing/app/views/payments/new.html.haml
diff options
context:
space:
mode:
authorclaucece <soficeli0@gmail.com>2015-09-21 23:27:05 -0500
committerclaucece <soficeli0@gmail.com>2015-10-05 22:39:30 -0500
commit2e1d21f53f0f96fba544b592fde84af2f4879a24 (patch)
treefc7d512c67002774ac8135dee16cc7f7ccd1919e /engines/billing/app/views/payments/new.html.haml
parentf55fd33542c68fc8fc4519d622a41ef9517ebee3 (diff)
subscriptions, haml and translations
Diffstat (limited to 'engines/billing/app/views/payments/new.html.haml')
-rw-r--r--engines/billing/app/views/payments/new.html.haml21
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/billing/app/views/payments/new.html.haml b/engines/billing/app/views/payments/new.html.haml
new file mode 100644
index 0000000..8d5bd5a
--- /dev/null
+++ b/engines/billing/app/views/payments/new.html.haml
@@ -0,0 +1,21 @@
+%h2.mbs
+ = t(:new_donation)
+%br/
+= form_tag confirm_payment_path, id: "checkout-form" do
+ - if current_user and !current_user.has_payment_info?
+ = render 'customer_form' unless current_user.is_anonymous?
+ %br/
+ %p
+ = t(:donation_info)
+ %div{:id => "payment-form" }
+ %div{:id => "coinbase-container-id" }
+ %input{:name => "amount", :placeholder => "Enter amount", :type => "text"}
+ %input.btn.btn-primary{:type => "submit", :value => "Donate"}
+%script{:src => "https://js.braintreegateway.com/v2/braintree.js"}
+:javascript
+ var clientToken = "#{@client_token}";
+ braintree.setup(clientToken, "dropin", {
+ container: "payment-form",
+ form: "checkout-form",
+ coinbase: { container: "coinbase-container-id" }
+ });