If this is the wrong board, sorry, please move it, I have searched and cannot find anyone else getting an answer to this problem From here https://www.paypal.com/buttons/smart?flowloggingId=004609ba385e1 Just looking at setting up a quick payment method, using the pre built solution IDE is amazon Using ruby and Rails on a standard html page I added the code to the page and save it Started server When I initially visit the page using Chrome, I inspect the page and see in the Console VM2908:2 Uncaught ReferenceError: paypal is not defined I pasted the exact code from the paypal link (https://www.paypal.com/buttons/smart?flowloggingId=004609ba385e1) <div id="paypal-button-container"></div> <script src="https://www.paypal.com/sdk/js?client-id=sb¤cy=GBP" data-sdk-integration-source="button-factory"></script> <script> paypal.Buttons({ style: { shape: 'pill', color: 'blue', layout: 'vertical', label: 'pay', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ amount: { value: '40' } }] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(details) { alert('Transaction completed by ' + details.payer.name.given_name + '!'); }); } }).render('#paypal-button-container'); </script> and I get the following error VM2908:2 Uncaught ReferenceError: paypal is not defined How is this possible, I copied teh code, it says it should work Thanks and for any help anyone can provide
... View more