<% address = current_order.ship_address %> <% id = payment_method.id %> <% content_for :head do %> <%= javascript_include_tag "spree/checkout/braintree" %> <% end %> <% if current_store.braintree_configuration.paypal? %> <% end %> <% if current_store.braintree_configuration.credit_card? %>
<%= render "spree/shared/braintree_hosted_fields", id: id %>
<% end %>