I am currently working with paypal. At first you might think, “Hey tons of dock! Yay!”, But actually it's SAVING. Tons of document that suggest that you already know what you're looking for. Try the following JS code (you should have already called the setExpressCheckout method and have a token):
$(document).ready(function() {
The only thing I needed here was for the correct F *** NG URL to use for testing (sandbox environment).
By the way, before testing, make sure that you are logged into your sandbox account;)
source share