Sha256: 1e7d93536c57fdfdbd7247bbfda18227bd6d05a47fb5e4d358730437d70162cf

Contents?: true

Size: 1.71 KB

Versions: 25

Compression:

Stored size: 1.71 KB

Contents

<div id="payment" data-hook>
  <p class="payment-type checkout-content-header">
    <%= Spree.t(:payment_type).upcase %>
  </p>

  <div data-hook="checkout_payment_step">
    <%= render partial: 'spree/checkout/payment/storecredit' %>

    <ul id="payment-method-fields" class="list-unstyled position-relative" data-hook>
      <% checkout_available_payment_methods.each do |method| %>
        <li class="radio">
          <%= label_tag '', class: "form-check-label spree-radio-label payment-option", data: { type: method.id == @payment_sources&.first&.payment_method_id ? 'card' : nil } do %>
            <%= radio_button_tag "order[payments_attributes][][payment_method_id]",
                                 method.id,
                                 method.id == @order.payments.checkout.last&.payment_method_id || method == checkout_available_payment_methods.first %>
            <span class="spree-radio-label-custom-input"></span>
            <%= Spree.t(method.name, scope: :payment_methods, default: method.name) %>
          <% end %>
        </li>
      <% end %>
    </ul>

    <div class="payment-sources">
      <%= render partial: 'payment_sources' if @payment_sources.present? %>

      <ul id="payment-methods" class="list-unstyled position-relative mb-0 payment-sources-add-form" data-hook>
        <% checkout_available_payment_methods.each do |method| %>
          <li id="payment_method_<%= method.id %>" class="<%= 'last' if method == checkout_available_payment_methods.last %>" data-hook>
            <fieldset>
              <%= render partial: "spree/checkout/payment/#{method.method_type}", locals: { payment_method: method } %>
            </fieldset>
          </li>
        <% end %>
      </ul>
    </div>
  </div>
</div>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
spree_frontend-4.2.7 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.3.3 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.7.0 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.6.0 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.5.0 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.2.6 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.3.2 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.4.0 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.3.1 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.3.0 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.3.0.rc3 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.3.0.rc2 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.3.0.rc1 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.2.5 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.2.4 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.2.3.1 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.2.3 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.2.2 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.2.1 app/views/spree/checkout/_payment.html.erb
spree_frontend-4.2.0 app/views/spree/checkout/_payment.html.erb