Sample HTML button code
View sample HTML code that shows various payment features and options for each PayPal payment button.
Important: Buttons created on the Create a PayPal payment button page are automatically secured. However, these samples contain unencrypted button code for illustrative purposes only. In your website production environment, always use encrypted or hosted buttons to prevent malicious tampering. If you're manually creating payment buttons, see Secure your HTML buttons for information on security strategies.
Use the following samples as a starting point to create your own HTML payment button code: