PayPal Button As Text Link

Viewed 26433

Can anyone please tell me how to change a PayPal buy button to a text link? Thanks. Here is the code:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="cmd" value="_s-xclick">
  <input type="hidden" name="hosted_button_id" value="XXX">
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
7 Answers

The code you need is:

<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XXX">Text goes here</a>

Replace XXX with whatever your button code is and replace Text goes here with whatever text you wish to show.

The XXX is the hosted button ID, which is usually a 13 character value such as H6C28LJRV72J2.

One solution that has not been posted is for the donate link. Hopefully someone finds this helpful. In addition to what @1' OR 1 -- provided, you can use the below for a text link for donations:

https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=INFO@EMAIL.COM&lc=US&item_name=Donation+to+YOUR+BUSINESS+NAME&no_note=0&cn=&curency_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted

You'll want to replace INFO@EMAIL.com and Donation+to+YOUR+BUSINESS+NAME with your own information, as well as possibly change currency code.

Related