Donation Reason

Please enter a description

Amount USD

Please enter a price

Please enter an Invoice ID

[removed] function initPayPalButton() { var description = document.querySelector(‘#smart-button-container #description’); var amount = document.querySelector(‘#smart-button-container #amount’); var descriptionError = document.querySelector(‘#smart-button-container #descriptionError’); var priceError = document.querySelector(‘#smart-button-container #priceLabelError’); var invoiceid = document.querySelector(‘#smart-button-container #invoiceid’); var invoiceidError = document.querySelector(‘#smart-button-container #invoiceidError’); var invoiceidDiv = document.querySelector(‘#smart-button-container #invoiceidDiv’); var elArr = [description, amount]; if (invoiceidDiv.firstChild.innerHTML.length > 1) { invoiceidDiv.style.display = “block”; } var purchase_units = []; purchase_units[0] = {}; purchase_units[0].amount = {}; function validate(event) { return event.value.length > 0; } paypal.Buttons({ style: { color: ‘gold’, shape: ‘rect’, label: ‘paypal’, layout: ‘vertical’, }, onInit: function (data, actions) { actions.disable(); if(invoiceidDiv.style.display === “block”) { elArr.push(invoiceid); } elArr.forEach(function (item) { it