PayPal Button As Text Link

Can anyone tell me how to change the PayPal purchase button to a text link? Thank you 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> 
+10
source share
7 answers

Paypal has a builder for this. Log in to your PayPal account. Click "Merchant Services". Select the type of button you want (payment, subscription, etc.). Run the rest of the options. It will generate a button in the form of a form, but at the top there is a tab so that it is generated as a link. The tab is called "Email."

+18
source

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

You need, of course, to replace XXX.

The HTML will look like this: your text

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

+21
source

Once you have created the button, an email link will appear. You can use this as href = "https://www.paypal.com/examplecode/ExampleButtonID".

+1
source

Check out this Paypal link generator. http://www.blogbyben.com/2009/04/paypal-link-generator-build-your-own-1.html

It seems that PayPal basically forces you to use the image as a link, because it allows them to encrypt some data that is sent. See “Protecting HTML for payment buttons” on page 90 of https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_websitepaymentsstandard_integrationguide.pdf

+1
source

One solution that has not been published is to donate the link. Hope someone finds this helpful. In addition to what is provided by @1' OR 1 -- , you can use the text link below 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 want to replace INFO@EMAIL.com and Donation+to+YOUR+BUSINESS+NAME your own information, and also possibly change the currency code.

0
source

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 any code for your button and replace Text goes here with any text that you want to display.

XXX is the identifier of the hosted button, usually a 13-character value, such as H6C28LJRV72J2 .

0
source

How about this:

 <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="submit" value="submit" 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> 

This will give you a button with text.

-2
source

All Articles