Sha256: 8cde9e874879b575fdd556248088fc93ea5b81a732e394aad09f3cb6b09c4129

Contents?: true

Size: 877 Bytes

Versions: 4

Compression:

Stored size: 877 Bytes

Contents

<% id = payment_method.id %>

<%= render "spree/shared/braintree_head_scripts" %>

<% if current_store.braintree_configuration.paypal? %>
  <%= render "spree/shared/paypal_checkout_button" %>
<% end %>

<% if current_store.braintree_configuration.credit_card? %>
  <fieldset class="braintree-hosted-fields" data-braintree-hosted-fields data-id="<%= id %>" data-use-data-collector="<%= SolidusBraintree::Gateway.first.preferred_use_data_collector %>">
    <%= render "spree/shared/braintree_hosted_fields", payment_method: payment_method %>
  </fieldset>
<% end %>

<% if current_store.braintree_configuration.apple_pay? %>
  <%= render "spree/shared/apple_pay_button", id: id %>
<% end %>

<% if current_store.braintree_configuration.venmo? %>
  <%= render "spree/shared/venmo_button", payment_method: payment_method %>
<% end %>

<%= render "spree/shared/braintree_errors" %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_braintree-3.2.0 lib/generators/solidus_braintree/install/templates/app/views/checkouts/payment/_braintree.html.erb
solidus_braintree-3.1.0 lib/generators/solidus_braintree/install/templates/app/views/checkouts/payment/_braintree.html.erb
solidus_braintree-3.0.1 lib/generators/solidus_braintree/install/templates/app/views/checkouts/payment/_braintree.html.erb
solidus_braintree-3.0.0 lib/generators/solidus_braintree/install/templates/app/views/checkouts/payment/_braintree.html.erb