Sha256: 8eaf422952b61f02255d70b6bdce8bbff9b47835a325268731695511ba67752c

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

<%= render partial: "solidus_paypal_commerce_platform/shared/javascript_sdk_tag", locals: {payment_method: payment_method} %>

<div id="paypal-button-container"></div>

<div data-pp-message data-pp-placement="payment" data-pp-amount="<%= @order.total %>"></div>

<input type="hidden" name="payment_source[<%= payment_method.id %>][paypal_order_id]" id="payments_source_paypal_order_id">
<input type="hidden" name="payment_source[<%= payment_method.id %>][paypal_email]" id="payments_source_paypal_email">
<input type="hidden" name="payment_source[<%= payment_method.id %>][paypal_funding_source]" id="payments_source_paypal_funding_source">

<script>
  Spree.current_order_id = "<%= @order.number %>"
  Spree.current_order_token = "<%= @order.guest_token %>"
</script>

<% unless payment_method.render_only_venmo_standalone? %>
  <script>
    $( document ).ready(function() {
      SolidusPaypalCommercePlatform.renderButton("<%= payment_method.id %>",<%= raw payment_method.button_style.to_json %>)
    })
  </script>
<% end %>

<% if payment_method.venmo_standalone_enabled? %>
  <script>
    $( document ).ready(function() {
      SolidusPaypalCommercePlatform.renderVenmoStandalone("<%= payment_method.id %>",<%= raw payment_method.button_style.to_json %>)
    })
  </script>
<% end %>

<div id="paypal_commerce_platform_overlay"></div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_paypal_commerce_platform-0.7.1 lib/views/frontend/spree/checkout/payment/_paypal_commerce_platform.html.erb
solidus_paypal_commerce_platform-0.7.0 lib/views/frontend/spree/checkout/payment/_paypal_commerce_platform.html.erb
solidus_paypal_commerce_platform-0.6.0 lib/views/frontend/spree/checkout/payment/_paypal_commerce_platform.html.erb
solidus_paypal_commerce_platform-0.5.0 lib/views/frontend/spree/checkout/payment/_paypal_commerce_platform.html.erb
solidus_paypal_commerce_platform-0.4.0 lib/views/frontend/spree/checkout/payment/_paypal_commerce_platform.html.erb