Sha256: af7dce82034f4067773ad427c18b93f546244ebc3bd44d6f6b8b307a2318503d

Contents?: true

Size: 1.82 KB

Versions: 26

Compression:

Stored size: 1.82 KB

Contents

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

      <tr>
        <td><strong><%= Spree.t(:avs_response) %>:</strong></td>
        <td class="align-center">
          <span class="<%= latest_payment.is_avs_risky? ? 'state void' : 'state complete' %>">
            <% if latest_payment.is_avs_risky? %>
              <%= "#{Spree.t(:error)}: #{avs_response_code[latest_payment.avs_response]}" %>
            <% else %>
              <%= Spree.t(:success) %>
            <% end %>
          </span>
        </td>
      </tr>

      <tr>
        <td><strong><%= Spree.t(:cvv_response) %>:</strong></td>
        <td class="align-center">
          <span class="<%= latest_payment.is_cvv_risky? ? 'state void' : 'state complete' %>">
            <% if latest_payment.is_cvv_risky? %>
              <%= "#{Spree.t(:error)}: #{cvv_response_code[latest_payment.cvv_response_code]}" %>
            <% else %>
              <%= Spree.t(:success) %>
            <% end %>
          </span>
        </td>
      </tr>
    </tbody>
  </table>
</fieldset>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
solidus_backend-2.2.2 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.1.1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.0.3 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-1.4.2 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-1.3.2 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.0.2 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-1.4.1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.2.1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.2.0 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.2.0.rc1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.2.0.beta1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.1.0 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.0.1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.0.0 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-1.4.0 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/orders/_risk_analysis.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/orders/_risk_analysis.html.erb