diff options
author | claucece <soficeli0@gmail.com> | 2015-09-15 00:26:52 -0500 |
---|---|---|
committer | claucece <soficeli0@gmail.com> | 2015-10-05 22:34:21 -0500 |
commit | d11768e58b98312c95a8ac5e9c18e3069b4d76dc (patch) | |
tree | 35b4cfaf0814222e675f7fbd5423f6214b5d4aef /engines/billing/app/views/payments/_form.html.erb | |
parent | 70073b1ac48f96d3e375630fb7f3904351e0f696 (diff) |
implemented the form and the generate
Diffstat (limited to 'engines/billing/app/views/payments/_form.html.erb')
-rw-r--r-- | engines/billing/app/views/payments/_form.html.erb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/billing/app/views/payments/_form.html.erb b/engines/billing/app/views/payments/_form.html.erb new file mode 100644 index 0000000..9713981 --- /dev/null +++ b/engines/billing/app/views/payments/_form.html.erb @@ -0,0 +1,16 @@ +-# slim template += form_tag organization_payment_path(organization) do + + #dropin + + = submit_tag 'Confirm', class: 'btn push--ends' + +- content_for :javascript do + = javascript_include_tag "https://js.braintreegateway.com/v2/braintree.js" + javascript: + var client_token = "#{@organization.payment['client_token']}"; + braintree.setup( + client_token, + 'dropin', { + container: 'dropin' + }); |