Sha256: 50f7761ff9e27644c69ce36ea09a046a540a3f53760f9d9e8a94a4bef14158b8

Contents?: true

Size: 854 Bytes

Versions: 1

Compression:

Stored size: 854 Bytes

Contents

<% if current_order.present? && cart_checkout_payment_method.present? %>
  <div id="stripe-payment-request" class="stripe-payment-request" style="display:none">
    <div id="payment-request-button"
      data-stripe-config="<%= cart_checkout_payment_method.stripe_config(current_order).to_json %>"
      data-order-token="<%= current_order.guest_token %>"
      data-submit-url="<%= api_checkout_path(current_order.number) %>"
      data-complete-url="<%= checkout_path %>"
      class="payment-request-button">
    </div>

    <div id="card-errors" class='errorExplanation' role="alert" style="display: none">
    </div>
  </div>

  <script src="https://js.stripe.com/v3/"></script>

  <%= javascript_include_tag 'spree/stripe-v3-payments' %>
  <script>
    $(function() {
      new SolidusStripe.CartPageCheckout().init()
    });
  </script>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_stripe-2.1.0 lib/views/frontend/spree/orders/_stripe_payment_request_button.html.erb