[Genuine] asp Alipay no-contract and instant-to-account interface interface no-contract and instant-to-account order system website commercial source code
Decompression password www.jztuan.net
1. Open the alipay_Config.asp configuration file and enter your contract information.
Log in to your contracted Alipay account to obtain the contracted partner ID and security verification code.
*************************************************** ************************************************
2. Publish the ASP code to the IIS server and directly access the index.asp file to go to the Alipay checkout counter.
*************************************************** ************************************************
3. Perform database operations on the order information of successful payment.
There are two return mechanisms:
A return_url returns immediately, and this return is in 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. Why does the money paid by my buyer arrive, but the buyer does not get the currency in his recharge account?
First, determine whether there is asynchronous processing for notification return in the interface, if you just use the return_url parameter.
Then there is no way to control the operation of this kind of client. During the redirection process, the browser may be closed and other reasons may cause the page to not be executed, and then the operation statements of the database are not executed.
*************************************************** ************************************************
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.