kylex
kylex

Reputation: 14426

Is there a way to create a PayPal donation link (as opposed to a button)?

I've looked all over paypal's website and can't find any info on creating a simple text link for a donation.

Anyone have any info?

Upvotes: 2

Views: 1404

Answers (2)

Asaf
Asaf

Reputation: 4407

According to this link, you can use HTTP GET, meaning you can build a URL for a simple link. Note that this link is written in C#, so you can't actually use this as code reference.

You'll probably need something like

<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=...">

Make sure to use '&' to separate fields and to encode them properly if they include special characters (such as '&').

Upvotes: 4

Gavin Miller
Gavin Miller

Reputation: 43845

Updating the button code from paypal:

<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="[email protected]">
    <input type="hidden" name="item_name" value="Team In Training">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="amount" value="25.00">
    <a href="javascript:document._xclick.submit();">Donate</a>
</form>

Upvotes: 1

Related Questions