Sha256: 7e5d493250c898cbba0f1e537707a7232faea5448ba81f7d9ad1fec63849c6c8

Contents?: true

Size: 901 Bytes

Versions: 1

Compression:

Stored size: 901 Bytes

Contents

<% 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, current_order, user: current_spree_user) %>
<% else %>
  <fieldset data-nexio-apm="<%= payment_method.id %>" data-hook="nexio_apm" data-nexio-payment-method="<%= payment_method.preferred_payment_method %>">
    <input name="order[payments_attributes][][nexio_apm_transaction_id]" type="hidden" data-hook="nexio_apm_transaction_id" />
    <input name="payment_source[<%= payment_method.id %>][gateway_payment_profile_id]" type="hidden" data-hook="gateway_payment_profile_id" />
  </fieldset>
  <%= setup_nexio_apm(payment_method, current_order, user: current_spree_user) %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_nexio-0.7.0 app/views/spree/checkout/payment/_nexio_apm.html.erb