How to Add Your Own Paypal Button on a Page

How to Add Your Own Paypal Button on a Page
 
In Paypal, create your hosted Paypal button.
 
When you are done creating the button, Paypal will show code such as the following to add to your site:
 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
     <input name="cmd" type="hidden" value="_s-xclick" />
     <input name="hosted_button_id" type="hidden" value="J6BVLUNK74BAS" />
     <input name="submit" type="image" alt="PayPal - The safer, easier way to pay online!"
     src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" />
     <img width="1" height="1" alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" border="0" />
</form>
 
Use the following code instead, inserting your hosted_buttonId (highlighted in yellow) and your Paypal button image (highlighted in blue):
 
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J6BVLUNK74BAS" target="_top">
<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"/>
</a>
 
The code show be entered as either:
  • Page Content - as Pasted Code, NOT HTML
  • Display Advertising - as Pasted Code