Why did my PayPal button refresh my page instead of redirecting to a PayPal checkout page?
This commonly occurs if a <form> tag wasn't appropriately closed somewhere prior to the PayPal HTML button code on your site.
Review your code with your developer to determine where the open form is. Add the tag in the website HTML code to close the form at the appropriate spot.