As long as you have a certified Alipay account, you can make online payments. It is convenient and fast. Once you set up your account, you can collect money online in real time.
How to use:
After obtaining the corresponding interface code
1. Open the Config.asp configuration file and enter your Alipay account. Note!!! You must pass identity authentication before you can use it. The payment handling fee is 10%.
2. Publish the ASP code to the IIS server. Directly access the index.asp file to directly connect to online banking. Access alipay.asp to directly go to the Alipay cashier.
3. Perform database operations on the order information of successful payment.
There are two return mechanisms:
A return_url returns immediately, this return is the get method.
Two notify_url notification returns, this return is in post mode, which implements the server's point-to-point notification mechanism.
Note: The returned address cannot be customized with parameters. For example http://www.alipay.com/return_Alipay_Notify.asp?xx=test
Please see the documentation for more information on the return mechanism and differences.
4. If return information is obtained
Get or post in the specified two types of returned files.
For example: return_url: returns return_Alipay_Notify.asp in the settings file,
The order number passed to Alipay on the merchant website -------request("out_trade_no"),
Price-------request("price")
notify_url: Returns Alipay_Notify.asp in the settings file,
The order number passed to Alipay on the merchant website -------request("out_trade_no"),
Price-------request("price")
5. Is it safe to use the Alipay interface you developed?
We are a formally and legally registered company. After signing a contract with Alipay, we developed it in order to facilitate more netizens to use the Alipay online payment interface. It is not a profit-making product. Payments are made directly to the Alipay account you set up.
6. If both methods are set, it is necessary to determine whether the transaction order has been updated, because the two return mechanisms are different. It may be returned at the same time or in sequence. Please note that when updating the order, you must judge that the order cannot be updated repeatedly.
The buyer has paid (trade_status=TRADE_FINISHED) in this status
Update the database in this state. And return to Alipay success. If you don't get success.
If you have any questions, please contact QQ: 1806475120.