>> As for the examples you provided, I can't tell - it has to be all together just like the example I posted. You may want to simply try the example as it is first before actually including in your current web page. I'm guessing that there's something missing when you insert the code into your web page so it's best to try it with a clean blank page first. I should have mentioned that this site is a WordPress site. So I've moved the JS to a separate JS script. But does the JS need to be inserted explicitly into the <head> element as you have done? I have not done so--the JS code is executed at another point during the loading of the page (specifically, when WordPress enqueues its external scripts). Maybe I can try moving it to <head> as a test. As a separate test, I tried inserting your code into Codepen, and there it *does* function as expected. So I'll try to find out how my site is processing the code differently. FYI the page with my form is here if you want to take a look. >> You can use either your Merchant Account ID or your email address. Since you button code is not saved on the PayPal servers and it's manually coded, this makes it possible for bots to scoop up your email address and in turn use it for spamming thus, the Merchant Account ID . OK got it, thanks.
... View more