Sha256: 276a1a06ed2466c32f2e70af0ebf2f05bc585cc432b31d1e019612d231560358
Contents?: true
Size: 1.68 KB
Versions: 4
Compression:
Stored size: 1.68 KB
Contents
<%= render "spree/shared/paypal_braintree_head_scripts" %> <div id="paypal-button"></div> <div data-pp-message data-pp-placement="payment" data-pp-amount="<%= current_order.total %>"></div> <script> var paypalOptions = { flow: '<%= SolidusPaypalBraintree::Gateway.first.preferred_paypal_flow %>', amount: '<%= current_order.total %>', currency: '<%= current_order.currency %>', enableShippingAddress: true, buyerCountry: '<%= SolidusPaypalBraintree::Gateway.first.preferred_force_buyer_country %>', environment: '<%= Rails.env.production? ? "production" : "sandbox" %>', locale: '<%= paypal_button_preference(:paypal_button_locale, store: current_store) %>', useDataCollector: <%= SolidusPaypalBraintree::Gateway.first.preferred_use_data_collector %>, style: { color: '<%= paypal_button_preference(:paypal_button_color, store: current_store) %>', shape: '<%= paypal_button_preference(:paypal_button_shape, store: current_store) %>', label: '<%= paypal_button_preference(:paypal_button_label, store: current_store) %>', layout: '<%= paypal_button_preference(:paypal_button_layout, store: current_store) %>', <% if paypal_button_preference(:paypal_button_layout, store: current_store) == "horizontal" %> tagline: '<%= paypal_button_preference(:paypal_button_tagline, store: current_store) %>', <% end %> messaging: '<%= paypal_button_preference(:paypal_button_messaging, store: current_store) %>' } } var options = { restart_checkout: true } var button = new SolidusPaypalBraintree.createPaypalButton( document.querySelector("#paypal-button"), paypalOptions, options ) button.initialize(); </script>
Version data entries
4 entries across 4 versions & 1 rubygems