Sha256: 437d5c16cd740489d77a79fbcd4ea47667f4672f574d9abeced3650e0747538e

Contents?: true

Size: 1.65 KB

Versions: 107

Compression:

Stored size: 1.65 KB

Contents

<fieldset class="no-border-bottom" id="risk_analysis">
  <legend><%= "#{t('spree.risk_analysis')}: #{t('spree.not') unless @order.is_risky?} #{t('spree.risky')}" %></legend>
  <table>
    <thead>
      <th><%= t('spree.risk')%></th>
      <th><%= t('spree.status')%></th>
    </thead>
    <tbody id="risk-analysis" data-hook="order_details_adjustments"  class="with-border">
      <tr class="">
        <td><strong>
          <%= t('spree.failed_payment_attempts') %>:
        </strong></td>
        <td>
          <span class="pill pill-<%= @order.payments.failed.count > 0 ? 'warning' : 'complete' %>">
            <%= t(
              'spree.payments_failed_count',
              count: @order.payments.failed.count
            ) %>
          </span>
        </td>
      </tr>

      <tr>
        <td><strong><%= t('spree.avs_response') %>:</strong></td>
        <td>
          <span class="pill pill-<%= latest_payment.is_avs_risky? ? 'warning' : 'complete' %>">
            <% if latest_payment.is_avs_risky? %>
              <%= avs_response_code[latest_payment.avs_response] %>
            <% else %>
              <%= t('spree.success') %>
            <% end %>
          </span>
        </td>
      </tr>

      <tr>
        <td><strong><%= t('spree.cvv_response') %>:</strong></td>
        <td>
          <span class="pill pill-<%= latest_payment.is_cvv_risky? ? 'warning' : 'complete' %>">
            <% if latest_payment.is_cvv_risky? %>
              <%= cvv_response_code[latest_payment.cvv_response_code] %>
            <% else %>
              <%= t('spree.success') %>
            <% end %>
          </span>
        </td>
      </tr>
    </tbody>
  </table>
</fieldset>

Version data entries

107 entries across 107 versions & 2 rubygems

Version Path
solidus_backend-3.3.4 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.9 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.8 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.3.3 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.7 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.3.2 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.3.1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.6 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.1.9 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.3.0 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.5 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.4 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.3 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.1.8 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.0.8 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.2 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.0 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.2.0.alpha app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-3.0.7 app/views/spree/admin/orders/_risk_analysis.html.erb