Sha256: 41fd157a5dee0711d73aa9d92ff7d712d49b2c02317ea5e7e9995f56ecc31b35

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

<% payment_method = SolidusAfterpay::PaymentMethod.active.first unless local_assigns[:payment_method] %>
<% if payment_method.present? %>
  <% content_for :head do %>
    <%= include_afterpay_js(
      test_mode: payment_method.preferred_test_mode,
      merchant_key: payment_method.preferred_merchant_key) %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_afterpay-0.3.0 app/views/solidus_afterpay/_afterpay_javascript.html.erb
solidus_afterpay-0.2.0 app/views/solidus_afterpay/_afterpay_javascript.html.erb