开发者

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

I've looked all over p开发者_如何转开发aypal's website and can't find any info on creating a simple text link for a donation.

Anyone have any info?


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&business=email@myserver.com&item_name=...">

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


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="me@mybusiness.com">
    <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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜