//= require solidus_braintree/paypal_button // This is the PayPal button on the cart page $(document).ready(function() { if (document.getElementById("empty-cart")) { $.when( $.getScript("https://js.braintreegateway.com/3.84.0/js/client.min.js"), $.getScript("https://js.braintreegateway.com/3.84.0/js/paypal-checkout.min.js"), $.getScript("https://js.braintreegateway.com/3.84.0/js/data-collector.min.js") ).done(function() { $("#content").append('
'); $('