Thank you for taking the time to read. So i have been banging my head against a brick wall for a few hours now and could really do with some help i have created a smart payment button. The problem i am facing is i need it to be a custom amount my customers pay different prices and owe different amounts so i need it to allow the customer to enter the amount and then click pay. *Note i have swapped my id for xxxx The code so far is as follows <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> </head> <body> <script src="https://www.paypal.com/sdk/js?client-id=xxx&commit=true"> </script> <div id="paypal-button-container"></div> <script> paypal.Buttons({ createOrder: function(data, actions) { // Set up the transaction return actions.order.create({ purchase_units: [{ amount: { value: '22.50' } }] }); } }).render('#paypal-button-container'); </script> </body> I have it set at £22.50 so far but as i say i need it to be a custom amount so for example if Mr Adams needs to pay £35 he can visit my website enter the amount and click pay with paypal or visa, and so on. Thank you once again for reading and i hope someone will help.
... View more