Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PayPal Button As Text Link

Tags:

html

paypal

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>
like image 584
DearRicky Avatar asked Jul 29 '11 22:07

DearRicky


People also ask

Can I put a PayPal button in an email?

In your PayPal account, create a website button, then click the Email tab and copy the link. ... Click on the PayPal button in your email and click Link > Web Page. Paste the URL into the field. Click Insert.


2 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.

like image 129
Dan Roberts Avatar answered Sep 23 '22 04:09

Dan Roberts


Did you try this? https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XXX

You need to replace XXX of course.

The HTML-Code would look like this: Your Text

For example one with working button id: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7865

like image 22
1' OR 1 -- Avatar answered Sep 24 '22 04:09

1' OR 1 --