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

PHP Alipay interface program source code (full version with examples)_PHP tutorial PHP Alipay interface program source code (full version with examples)_PHP tutorial

20 Jul 2016

PHP Alipay interface program source code (full version with examples). PHP Alipay interface program source code (full version with examples) is now a popular website support platform, and Alipay is the leader. Now we will tell you how to use Alipay API.

Detailed explanation of examples of WeChat mini program payment interface Detailed explanation of examples of WeChat mini program payment interface

22 Apr 2017

The first step in WeChat Mini Program payment is to enter the Mini Program, place an order, request order payment, and call the Mini Program login API to obtain the Openid (https://mp.weixin.qq.com/debug/wxadoc/dev/api/api- login.html#wxloginobject), generate merchant orders, these are all tasks completed on the mini program. Mini-terminal code // pages/pay/pay.jsvar app = getApp();Page({

Mini Program Simple PHP multi-image upload mini program code Mini Program Simple PHP multi-image upload mini program code

29 Jul 2016

Mini program: Mini program is a simple PHP multi-image upload mini program code: first upload the source code, you can copy it to your own computer to run ~ Copy the code as follows: <html> <meta http-equiv="Content-Type" c method="post" enctype="multipart/form-data"> <input type="file" name="img[]" /><br /> <input type

How to create a mini program in Alipay How to create a mini program in Alipay

19 Mar 2020

Alipay mini program creation method: 1. Log in to the mini program development center, click "Start Creation" or "Create" to enter the mini program creation page. 2. Fill in the name of the mini program on the create mini program page and click Create to quickly create the mini program.

Comparison and difference between WeChat mini program and Alipay mini program Comparison and difference between WeChat mini program and Alipay mini program

30 May 2017

What is the difference between Alipay mini program and WeChat mini program? The news of Alipay Mini Program has been exposed. Many friends find it very novel and think of WeChat Mini Program. Which one is better, Alipay Mini Program or WeChat Mini Program? What is the difference between Alipay Mini Program and WeChat Mini Program? Let’s introduce it to you below Detailed comparison and evaluation of the differences between WeChat Mini Program and Alipay Mini Program.

Implementation of calendar sign-in applet Implementation of calendar sign-in applet

26 Jan 2021

Mini program development tutorial: This article shares with you the ideas and source code for implementing a calendar mini program. It has certain reference value and I hope it can be helpful to everyone.

Detailed explanation of the steps to set up Gitee applet Detailed explanation of the steps to set up Gitee applet

31 Mar 2023

Gitee is a very good open source platform that not only supports code hosting, but also has many functions such as Wiki, blog, email, CI/CD, etc. For mini program developers, Gitee also provides mini program settings. Today we will explain in detail the steps to set up the Gitee applet. ## Step one: Create a new mini program. First, we need to create a new mini program on Gitee. Open the Gitee homepage, click "New Warehouse", and select "Mini Program" in "Warehouse Type": ![New Mini Program](https://img

Where can I find the php source code? Where can I find the php source code?

06 Nov 2019

PHP source code can be downloaded from the PHP Chinese website download site, including back-end templates, mini program source codes, Discuz templates, wordpress templates, phpcms template source codes, etc.

How to publish a mini program? How to publish a mini program?

03 Jun 2020

Mini program publishing method: first purchase a server and configure the production environment of the mini program; then put the back-end source code on the server to run; then purchase a domain name and manage it with the back-end server address; finally publish and submit for review in the mini program management background That’s it.

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