<% # Set defaults for local_assigns user ||= current_spree_user order ||= current_order %> <% if payment_method.preferred_customer_redirect %> <%= link_to '#', class: :hidden, data: { 'nexio-customer-redirect': payment_method.id, 'nexio-payment-method': payment_method.preferred_payment_method } do %> <%= yield.presence || payment_method.name %> <% end %> <%= setup_custom_redirect(payment_method, order, user: user) %> <% else %>
<%= setup_nexio_apm(payment_method, order, user: user) %> <% end %>