summaryrefslogtreecommitdiff
path: root/engines/billing/app/views/payments/_form.html.erb
blob: 9713981d147368d262a31a6a118f142e3b9b0df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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'
      });