I am currently using the old style html button on my website to allow for an alternative payment than my other integrated credit cards. I would like to utilize the newer smart buttons so I can accept Venmo payments. I want to allow the customer to enter a custom dollar amount to pay and enter a description (ie.what athlete's account to credit the payment to) for me to reference. I can't figure out what to add to the code to accomplish this. *** <div id="paypal-button-container"></div> <script src="https://www.paypal.com/sdk/js?client-id=MYCLIENTID¤cy=USD" data-sdk-integration-source="button-factory"></script> <script> paypal.Buttons({ style: { shape: 'pill', color: 'gold', layout: 'vertical', label: 'paypal', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ amount: { value: '' } }] }); }, 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> ***
... View more