Table of Contents
1. What is the system integration between WP and Alipay?
2. Why write this article?
3. Steps of system integration
4. Some thoughts
Text
1. What is the system integration between WP and Alipay?
Alipay is currently the most popular electronic payment platform in China. In China, as long as you do online sales, you will inevitably have to deal with Alipay. Especially since the application fee for Alipay's merchant services has been waived (but a profit share of 1+% is required), Alipay has increasingly become one of the important payment methods for online marketing.
WordPress is an open source blogging program (but now, we have almost turned it into a CMS content management system). It has innate search engine friendliness and is the favorite of SEOers. In particular, due to its open source and simplicity, WP enthusiasts around the world have developed thousands of function extensions (plugins) and tens of thousands of template applications (theme) and widgets (widgets). These are the reasons why wp has strong vitality.
Based on the above reasons, currently, more SEO people hope to combine the SEO friendliness and rich function expansion of WP with the versatility of Alipay. Through the integration of WP and Alipay, online sales with higher conversion rates can be achieved.
2. Why write this article?
Not long ago, I used wp-mu to build a new multi-user website building system. Although the target group is a large number of users who like "free", for the sake of profitability, it is still hoped that some advanced functions can only be used through user payment. So, I thought of embedding the Alipay payment channel in the wp system. Before, I have seen that some domestic BSPs (there seem to be only a few) have adopted the integration of Alipay and WP, but I don’t know how they implement it. After searching, I saw people with the same needs as me. In addition, there are some experts who often say that the structure of the entire site must be modified to achieve integration. After a few days, there was no result. So, I decided to try it myself. The result is, quite simply, a success.
3. Steps of system integration
Due to time constraints, these steps will not be taken in screenshots. Because everyone is either engaged in SEO or development, I wrote it in words, so everyone can understand what I am talking about. Start now.
The main steps for integrating wp with Alipay system:
a. Apply for Alipay merchant service
b. Obtain system integration API
c. Interface installation and code modification
Specifically:
(1) Register an Alipay account. Here: https://www.alipay.com/
(2) After logging in, go to the Alipay homepage "Merchant Services" - "Instant Deposit (What I Need)"
(3) Fill in the merchant service center application form and conduct real-name authentication of the "contracted merchant". You are required to provide real personal information and mobile phone number in order to receive the verification code
(4) Submit the information and wait about 24 hours
(5) Receive the confirmation email from the contracted merchant and download the code samples required for system integration. If you don’t understand code, log in to “Merchant Services” on Alipay’s official website, click “Apply for Integration” in the contract list, and ask Alipay’s technical support staff to help you integrate
(6) Alipay’s technical support staff will call you within 48 hours after you apply for integration. You tell her that you are a WordPress system, tell her that you are the administrator of the website, and ask her to help you set up the WP-based interface program. About 2 hours later, an interface program based on the WP environment will be sent to your email.
(7) The following operations are all based on the PHP host. Win should be similar, but no one uses IIS to configure wp, right?
(8) Send Alipay to your interface program (rar compressed package), decompress it, and then compress it into zip. As for why, because mine is a GD host, I can only use zip. At this time, your interface program has been compressed into alipay.zip
(9) Create a new folder /alipay in your server and upload the alipay.zip compressed package to this directory. Decompress on the server side
(10) After decompression is completed, the path to access the Alipay interface program is: yourdomain.com/alipay/index.php
(11) At this point, more than half of the system achievements of wp and alipay have been completed. The payment channel at this time is ready for use! You can try to make a payment as a user and go to your Alipay account to check whether the payment amount has been credited.
(12) Some modifications: Alipay’s default interface page may not match the overall style of our website. At this time we may need to make some modifications to the page. Such as:
l Modify the name of the payment page at