Skip to content

Instantly share code, notes, and snippets.

@TJRoger
Last active August 9, 2016 16:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TJRoger/0aeb532df978e0af01a5 to your computer and use it in GitHub Desktop.
Save TJRoger/0aeb532df978e0af01a5 to your computer and use it in GitHub Desktop.
Donate Buttons

PayPal donate button 支付宝捐助按钮

[![PayPal donate button](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=224D8E2ZAKV2A&item_name=node%2ddota2%2dspectator&currency_code=USD)
[![支付宝捐助按钮](https://img.shields.io/badge/%E6%94%AF%E4%BB%98%E5%AE%9D-%E5%90%91TA%E6%8D%90%E5%8A%A9-yellow.svg)](http://donate.rotk.tk)  

code for donate page

<form id="alipayForm" style="text-align:center" "onsubmit="document.charset='gbk';" accept-charset="GBK"  action="https://shenghuo.alipay.com/send/payment/fill.htm" method="post">
    <input type="hidden" name="optEmail" value="abig_apple@163.com">
    <input type="hidden" name="payAmount" value="0.8">
    <input type="hidden" value="你的付款说明" placeholder="你的付款说明" name="title">
    <input type="hidden" value="你的备注" placeholder="你的备注" name="memo">
    <input name="pay" value="捐款" type="image" src="https://img.shields.io/badge/%E6%94%AF%E4%BB%98%E5%AE%9D-%E5%90%91TA%E6%8D%90%E5%8A%A9-yellowgreen.svg">
</form>
    <script>
        document.getElementById('alipayForm').submit();
    </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment