Sha256: 442a8cfd20b37303515a0b76a01eed9bb654a484220a1509622e9c9958cce113
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
<% payment_method = SolidusAfterpay::PaymentMethod.active.first unless local_assigns[:payment_method] %> <%= render partial: 'solidus_afterpay/afterpay_javascript', locals: { payment_method: payment_method } if Rails.env != "test" %> <% if payment_method.present? && payment_method.available_for_order?(@order) %> <button type="button" id="afterpay-button" data-afterpay-entry-point="cart" data-order-number="<%= @order.number %>" data-payment-method-id="<%= payment_method.id %>"> <%= I18n.t('solidus_afterpay.express_checkout.button') %> </button> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_afterpay-0.3.0 | app/views/solidus_afterpay/_afterpay_checkout_button.html.erb |
solidus_afterpay-0.2.0 | app/views/solidus_afterpay/_afterpay_checkout_button.html.erb |