I logged in to Paypal. Went to the buttons page, selected the first one, smart button and clicked that. Then a page comes up with a form to fill out, you fill it out and then copy the code. No where on this page does it have any instructions. No where does it say I have to edit the code. Just gives me the code, which tells me just paste it in my page and it will work. So please tell me why there are no directions on that page like you are telling me? I could ignore all this nonsense if the buy now button was working, but I get an error on Paypal when I try to get one of these buttons. I just don't understand why Paypal is giving you buttons that do not work unless you have a degree in coding. Quite ridiculous to expect average users to all of a sudden become coders. Here is the code and none of what you claim s even in the code. <div id="smart-button-container"> <div style="text-align: center;"> <div id="paypal-button-container"></div> </div> </div> <script src="https://www.paypal.com/sdk/js?client-id=sb&enable-funding=venmo¤cy=USD" data-sdk-integration-source="button-factory"></script> <script> function initPayPalButton() { paypal.Buttons({ style: { shape: 'pill', color: 'blue', layout: 'vertical', label: 'paypal', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{"description":"Through the Tears USB Drive Album","amount":{"currency_code":"USD","value":43.5,"breakdown":{"item_total":{"currency_code":"USD","value":40},"shipping":{"currency_code":"USD","value":3.5},"tax_total":{"currency_code":"USD","value":0}}}}] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(orderData) { // Full available details console.log('Capture result', orderData, JSON.stringify(orderData, null, 2)); // Show a success message within this page, e.g. const element = document.getElementById('paypal-button-container'); element.innerHTML = ''; element.innerHTML = '<h3>Thank you for your payment!</h3>'; // Or go to another URL: actions.redirect('thank_you.html'); }); }, onError: function(err) { console.log(err); } }).render('#paypal-button-container'); } initPayPalButton(); </script>
... View more