Sha256: 66cf61a2ffffb61621fd4364ba0ac76a0edf751854f98d1643eb250a42a7f2e1

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

<%= render "spree/shared/paypal_braintree_head_scripts" %>

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

<script>
  var paypalOptions = {
    flow: 'vault',
    enableShippingAddress: true,
    environment: '<%= Rails.env.production? ? "production" : "sandbox" %>'
  }
  var options = {
    restart_checkout: true
  }

  var button = new SolidusPaypalBraintree.createPaypalButton(
    document.querySelector("#paypal-button"),
    paypalOptions,
    options
  )

  button.initialize();
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_paypal_braintree-0.4.0 app/views/spree/shared/_paypal_cart_button.html.erb