Home > WeChat Applet > Mini Program Development > Summary of using the online payment function of WeChat mini program

Summary of using the online payment function of WeChat mini program

伊谢尔伦
Release: 2017-06-11 10:16:27
Original
5003 people have browsed it

Recently I needed to use the online payment function in the WeChat mini program, so I took a look at the official documentation and found that it is very convenient to implement WeChat payment in the mini program. If you have developed WeChat payment under a service account before, Then you will find that the development process of WeChat payment in the mini program is exactly the same as that in the service account. Now I will talk about the development process and points of attention of WeChat payment in the mini program in detail. 1. The process of opening a WeChat payment and WeChat merchant account is the same as the WeChat payment process of opening a service account. There is nothing to say. 2. Obtain the user's openid home page. We need to obtain the current user's openid in the client js of the mini program. The user's code can be obtained by calling the wx.login method, and then the developer server uses the login credentials code to obtain the openid. wx.login({ Success: function(res) {

1. Analysis of code for online payment function of WeChat applet

Summary of using the online payment function of WeChat mini program

##Introduction: Recently I needed to use the online payment function in the WeChat mini program, so I took a look at the official documentation and found that it is very convenient to implement WeChat payment in the mini program. If you have developed a service account before WeChat payment, then you will find that the development process of WeChat payment in the mini program is exactly the same as that in the service account. Now I will talk about the development process and points of attention of WeChat payment in the mini program in detail. 1. The process of opening a WeChat payment and WeChat merchant account is the same as the WeChat payment process of opening a service account. There is nothing to say. 2. We need to obtain the user’s openid homepage in the small...

2. Implementation of php online payment function (Alipay)

Summary of using the online payment function of WeChat mini program

Introduction: In the process of implementing e-commerce websites, we often involve the payment function. Currently, the more popular third-party payment is Alipay and WeChat, the so-called third-party payment, are transaction support platforms provided by some third-party independent institutions that have signed contracts with major banks and have certain strength and credibility guarantees. In transactions through a third-party payment platform, after the buyer purchases the goods, he uses the account provided by the third-party platform to pay for the goods, and the third party notifies the seller of the arrival of the payment. This article takes Alipay access as a case. 1. Basic flow chart 2. Detailed step analysis: (1) The user initiates to the mall website...

3. The implementation code of the online payment function developed by WeChat applet

Summary of using the online payment function of WeChat mini program

Introduction: This article mainly introduces the relevant information about the implementation of the online payment function of the WeChat mini program. It requires Friends can refer to

4. Alipay access to Thinkphp thinkphp3.1 laravel thinkphp if

Introduction: thinkphp :Alipay access to Thinkphp: Scenario: Thinkphp framework (3.2.3), Alipay instant payment interface (http://aopsdkdownload.cn-hangzhou.alipay-pub.aliyun-inc.com/demo/alipaydirect.zip?spm= a219a.7629140.0.0.sBr1Z3&file=alipaydirect.zip), MD5 encryption method was recently built in the system, and the online payment function needed to be implemented. Without hesitation, the choice was

##5.

Which expert has used Paypal, is worried

#Introduction: Who has used Paypal, is worried! My website has a shopping cart that I wrote myself. We plan to add a credit card online payment function to the website, and customers are not required to have a Paypal account. Paypal supports this. The result of the code in the official document should be that if the customer does not have an account, he can fill in his credit card information on the left. If he has an account, he can log in to Paypal to pay from the right. The top is the shopping cart, which contains things passed from my website, such as the name. I integrated the quantity, price, etc. into

6 according to the instructions.

Anyone who has done the payment process such as Yibao, Alipay and so on, come and meet me

Introduction: Anyone who has done payment processes such as Yibao and Alipay, come and take a look? I would like to ask if the Shenma interface is needed to perform these online payment functions? What parameters? ------solution-------------------- Pay the money and they will give you some key parameters, then download the interface file and source code, and simply modify it. ------solution-------------------- For anything involving interfaces, you must read the documentation carefully. Alipay seems to be free in the first year (several

##7. Anyone who has done Yibao, Alipay and other payment processes come and meet me

Introduction: Anyone who has done payment processes such as Yibao and Alipay would like to ask about the Shenma interface required for these online payment functions? ------Solution? --------------------Pay the money and you will be given some key parameters, then download the interface file and source code, and simply modify it------ Solution--------------------Please read the documentation carefully for anything related to the interface. Alipay seems to be free in the first year (several years ago)#.

##8.

Which expert has used Paypal, I’m worried##Introduction: Who has used Paypal, I’m worried! Inside my website! I have my own shopping cart. I plan to add a credit card online payment function to the website, and the customer does not need to have a Paypal account. Paypal supports this. The code in the official document should indicate that if the customer does not have an account, he or she can fill in the credit card on the left. Information, if you have an account, you can log in to Paypal to pay from the right side. The top is the shopping cart, which contains things passed from my website, such as name, quantity, price, etc. I followed the instructions to integrate it into

9.

php version Sina payment interface new interface notes

Introduction: Because the project requires us to use the Sina payment interface to create an online payment function, this I have compiled some study notes about Sina Pay and the code after my own successful test. Let’s take a look.

##10. Call the Alipay PHP interface API implementation. Online instant payment function (UTF

Introduction: This time the order function is to be implemented in the project, so online payment must be completed. Online payment generally includes online banking payment and third-party payment ( Alipay, paypal, etc.), for the sake of simplicity, first complete the Alipay online payment function. Since the project is based on the Yii framework and uses UTF-8 encoding, it is obviously necessary to use the PHPUTF-8 related API in the Alipay interface to implement it.

The above is the detailed content of Summary of using the online payment function of WeChat mini program. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template