Add an Alipay one click collection page to your website - big cats will also be cute

Add an Alipay one click payment page to your website

Author: Big cats can also be cute Classification: Classification: Reprint log Published on: November 8, 2014 16:32 ė 42120 views six 11 comments
Since Alipay's personal collection page was taken off the shelf, all webmasters felt helpless, but it was also difficult for smart netizens.
Today, Big Cat sorted out these methods on the Internet and recommended them to everyone. What I wrote may not be the best, but it must be the most comprehensive.
After searching, we got two methods. One is direct link submission, which is low risk. The other is post submission, which may pose a threat if the network or browser is hijacked. But there are also advantages and disadvantages. The linked version is rigid and cannot modify the amount. It can only be modified on the Alipay page, while the form version can freely set the amount to the second page and directly click Next.
Next is the code. Some specific codes will be explained in detail for you to use on your website.

Send a URL link code website for everyone to facilitate their own collection page in the actual use process Click to enter

The red part must be replaced with the actual part during use

It also provides two styles. Please choose which one suits you

Style 1



Style 2



The first is the more secure link version

Version without comments

https://shenghuo.alipay.com/send/payment/fill.htm?optEmail= Payee account number (please fill in Alipay account number/mobile phone/email) &payAmount= Transfer amount (e.g. 10 or 10.00, two decimal places reserved) &title= Content of payment instructions (if it is in Chinese, you need to use url code gbk or gb2312)

Version with remarks

https://shenghuo.alipay.com/send/payment/fill.htm?optEmail= Payee account number (please fill in Alipay account number/mobile phone/email) &payAmount= Transfer amount (for example, 10 or 10.00, two decimal places are reserved &title= Content of payment instructions (if it is in Chinese, you need to use url code gbk or gb2312) &memo= Remarks (if it is in Chinese, you need to use url encoding gbk or gb2312)

Example

Version without comments



Version with remarks




Form submission version

Version without comments

<form action=" https://shenghuo.alipay.com/send/payment/fill.htm " method="POST" target="_blank" accept-charset="GBK">
    <input name="optEmail" type="hidden" value=" Alipay account/mobile phone number/email " />
    <input name="payAmount" type="hidden" value=" Donation amount (unit: yuan, two decimal places reserved) " />
    <input id="title" name="title" type="hidden" value=" Content of payment instructions " />
<input name="pay" type="image" value="transfer" src=“ Button Picture Link " />
</form>

Version with remarks

<form action=" https://shenghuo.alipay.com/send/payment/fill.htm " method="POST" target="_blank" accept-charset="GBK">
    <input name="optEmail" type="hidden" value=" Alipay account/mobile phone number/email " />
    <input name="payAmount" type="hidden" value=" Donation amount (unit: yuan, two decimal places reserved) " />
    <input id="title" name="title" type="hidden" value=" Content of payment instructions " />
    <input name="memo" type="hidden" value=" Remarks " />
<input name="pay" type="image" value="transfer" src=“ Button Picture Link " />
</form>

Example

Version without comments




Version with remarks



Form submission version with amount modification advanced version
Version without comments

<form action=" https://shenghuo.alipay.com/send/payment/fill.htm " method="POST" target="_blank" accept-charset="GBK">
    <input name="optEmail" type="hidden" value=" Alipay account/mobile phone number/email " />
Please enter the donation amount (two decimal places reserved):<input name="payAmount" type="text" value=“ Donation amount (unit: yuan, two decimal places reserved) " />
    <input id="title" name="title" type="hidden" value=" Content of payment instructions " />
<input name="pay" type="image" value="transfer" src=“ Button Picture Link " />
</form>

Version with remarks

<form action=" https://shenghuo.alipay.com/send/payment/fill.htm " method="POST" target="_blank" accept-charset="GBK">
    <input name="optEmail" type="hidden" value=" Alipay account/mobile phone number/email " />
Please enter the donation amount (two decimal places reserved):<input name="payAmount" type="text" value=“ Donation amount (unit: yuan, two decimal places reserved) " />
    <input id="title" name="title" type="hidden" value=" Content of payment instructions " />
    <input name="memo" type="hidden" value=" Remarks " />
<input name="pay" type="image" value="transfer" src=“ Button Picture Link " />
</form>

Example

Version without comments

Please enter the donation amount (the decimal point is reserved for two digits):

Version with remarks


Please enter the donation amount (the decimal point is reserved for two digits):



The above code must be replaced with actual parameters during actual use. You are also welcome to click the above examples, and then click Next.

This article is from Big Cat Huimeng. Please indicate the source and the corresponding link when reprinting.

zero
After reading this article, your mood is:
 
nausea
anger
Strongly like
be moved
pass by
boring
Lei Gui
follow

comment

  1. Lanzhou SEO 2015-02-25 08:15  Firefox 35.0   Windows
    This is good, support it, collect it for use, hahaha
    1. Big cats can also be cute 2015-02-27 12:49  Android Webkit 4.0   Android 4.1.2
      @Lanzhou SEO: Hehe, it must be easy to use
  2. starry sky 2014-11-28 17:18  Google Chrome 31.0.1650.63   Windows 7 x64 Edition
    Is this safe
    1. Big cats can also be cute 2014-11-30 23:00  Google Chrome 31.0.1650.63   Windows XP
      @Starry sky: Not sure, not tested.
  3. Yes 91 2014-11-24 00:45  Google Chrome 37.0.2062.124   Windows 7 x64 Edition
    Hehe, I will develop Alipay
    1. Big cats can also be cute 2014-11-26 13:08  Google Chrome 31.0.1650.63   Windows XP
      @Know 91: [Smile] It is safe and easy to use to develop APIs. Unlike me, I kneel down after being hijacked
  4. Grey memory 2014-11-09 06:28  Firefox 33.0   Windows XP
    Good detail
    1. Big cats can also be cute 2014-11-10 11:12  Google Chrome 31.0.1650.63   Windows XP
      @Grey memory: [Smoking] That is necessary
  5. Li Ming 2014-11-08 22:17  Firefox 33.0   Windows XP
    Good payment method, thank you for sharing!
    1. Big cats can also be cute 2014-11-10 11:13  Google Chrome 31.0.1650.63   Windows XP
      @Li Ming: [Handshake] In fact, your blog has been put for a long time, and one of them was picked up in your blog.
      1. Li Ming 2014-12-03 14:20  Firefox 33.0   Windows XP
        @Big cats can also be cute: [Gift]

Comment

E-mail addresses will not be made public. Required items have been used * tagging