Sha256: 8023d6e1fd8d01dd56b0d392c44d6270c002a4c77cfc7377c9a473e9ca48dc11
Contents?: true
Size: 1.74 KB
Versions: 8
Compression:
Stored size: 1.74 KB
Contents
<fieldset class="no-border-bottom"> <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 "#{pluralize(@order.payments.failed.count, Spree.t(:payment))}", 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
8 entries across 8 versions & 1 rubygems