Alipay interface

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.​

Instructions:

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.

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

Can C   Code Be Decompiled, and How Accurate Are the Results? Can C Code Be Decompiled, and How Accurate Are the Results?

30 Nov 2024

Recovering Lost C Source Code: Exploring Decompilation OptionsLosing the source code to a C program can be frustrating, but it's not...

How Can I Configure VS Code to Build C   Programs with Multiple .cpp Files? How Can I Configure VS Code to Build C Programs with Multiple .cpp Files?

21 Dec 2024

VS Code Builds C Programs with Multiple .cpp Source FilesWhen building a C program with multiple .cpp source files in Visual Studio Code, it's...

Can I Decompile a Compiled Go Program? Can I Decompile a Compiled Go Program?

12 Nov 2024

Can I Decompile a Compiled Go Program?No, it is not possible to decompile a compiled Go program back into its original Go source code. Here's a...

How to Build C   Projects with Multiple .cpp Files in VS Code? How to Build C Projects with Multiple .cpp Files in VS Code?

03 Jan 2025

VS Code Unable to Build C Program with Multiple .cpp Source FilesOne of the common challenges in using VS Code for C development is building...

First time here----smarty, first time here_PHP tutorial First time here----smarty, first time here_PHP tutorial

13 Jul 2016

New here - smarty, new here. First time here----smarty, first time here Smarty Day01-----Usage of smarty Function: Separate php html, program and art Usage: 1. Download the source code package 2. Directory structure libs source code file

Can Go Programs Be Decompiled Back to Source Code? Can Go Programs Be Decompiled Back to Source Code?

19 Nov 2024

Reverse Engineering Compiled Go ProgramsDecompiling a compiled program to its original source code is a challenging task. In the case of Go, the...

WeChat scan code payment interface development and Alipay instant payment development WeChat scan code payment interface development and Alipay instant payment development

11 Jul 2016

WeChat scan code payment interface development and Alipay instant payment development

Quick look of JNDI (Java Naming and Directory Interface) Quick look of JNDI (Java Naming and Directory Interface)

22 Oct 2024

Simple to say, programmer can use the same JNDI interface to query the following lookup resources provided by application server, such as data source search LDAP entries lookup DNS records Brief introduction is here. The code Resource

PHP WeChat advanced interface mass messaging multiple customer service, PHP interface mass messaging customer service PHP WeChat advanced interface mass messaging multiple customer service, PHP interface mass messaging customer service

06 Jul 2016

PHP WeChat advanced interface mass messaging multiple customer service, PHP interface mass messaging customer service. php WeChat advanced interface mass messaging multiple customer service, php interface mass messaging customer service This article shares the source code of php WeChat advanced interface mass messaging and multiple customer service for your reference, the specific content is as follows /**

See all articles See all articles

Hot Tools

WeChat mini program demo: imitation mall

WeChat mini program demo: imitation mall

WeChat mini program demo: imitating a mall, easy to get started, and has a good introduction to some basic functions of the mall

Takeaway: Implement anchor-like functionality

Takeaway: Implement anchor-like functionality

It is the similar anchor function that everyone needs. In addition, it also implements the typical ordering functions of some takeout apps. It is recommended to study and study;

WeChat mini program demo: Lezhu

WeChat mini program demo: Lezhu

WeChat mini program demo: Lezhu: similar to location-based; helpful application, somewhat similar to the spirit of Zhang Xiaolong’s mini program.

WeChat mini program game demo selects different color blocks

WeChat mini program game demo selects different color blocks

WeChat mini program game demo selects different color blocks

WeChat applet demo: carousel image transformation

WeChat applet demo: carousel image transformation

Carousel chart style change, a simple carousel chart implemented with a small program, easy to write