Sha256: 6a900dc9ede58ca3acc06c990bf1203d26fd8e47b238e7b6046318cb74e3b921

Contents?: true

Size: 474 Bytes

Versions: 44

Compression:

Stored size: 474 Bytes

Contents

<% source = payment.source %>
<% if source.is_a?(Spree::CreditCard) %>
  <span class="cc-type">
    <% unless (cc_type = source.cc_type).blank? %>
      <%= image_tag "credit_cards/icons/#{cc_type}.png" %>
    <% end %>
    <% if source.last_digits %>
      <%= Spree.t(:ending_in) %> <%= source.last_digits %>
    <% end %>
  </span>
  <br />
  <span class="full-name"><%= source.name %></span>
<% else %>
  <%= content_tag(:span, payment.payment_method.name) %>
<% end %>

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
spree_frontend-2.3.0 app/views/spree/payments/_payment.html.erb
spree_frontend-2.2.2 app/views/spree/payments/_payment.html.erb
spree_frontend-2.2.1 app/views/spree/payments/_payment.html.erb
spree_frontend-2.2.0 app/views/spree/payments/_payment.html.erb