A better way to handle that it to turn "auto return" on in your PayPal account settings and since PayPal will want you to enter a URL there (which we can override), you can simply enter your website link there. Doing so will eliminate the page with the button and return user to
download page after sale automatically except for the case when they are directly paying with a credit card rather than using their PayPal account.