For your WordPress integrated Alipay tutorial

Source: Internet
Author: User
Tags html page modify php file zip root directory

Directory
1. What is WP and Alipay system integration?
2. Why do you write this article?
3. System Integration Steps
4. Some feelings
Body
1. What is WP and Alipay system integration?
Alipay is the most popular electronic payment platform in China at present. At home, as long as you do online sales, it is inevitable to deal with Alipay. Especially because the current Alipay business services have waived the application fee (but the need to pay splitting, 1+%), Alipay is increasingly becoming a network marketing an important means of payment.
WordPress is an open source blogging program (but now we're almost content to turn it into a CMS Content management system). With innate search engine friendliness, it is Seoer's favorite. In particular, thanks to its open source and simplicity, WP enthusiasts around the world have developed thousands of feature extensions (plugins) and tens of thousands of template applications (theme) and micro-pieces (widgets). These are the reasons that WP has a strong vitality.
Based on the above reasons, at present, there are more SEO people want to WP's SEO-friendly, rich functional expansion and the universality of Alipay combined, through the integration of WP and ALIPAY, the conversion rate to achieve more Highland online sales.
2. Why do you write this article?
Not long ago, I used WP-MU to build a new multi-user station system. Although the target group is the vast majority of people like "free" users, but for the sake of profitability, still want to use some of the advanced work through the user's means to pay. So, think of the WP system embedded in Alipay payment channel. Before, I have seen some of the domestic BSP (as if only a few) have adopted Alipay and WP integration of the way, but do not know how to achieve. Through the search, see all the people who have the same needs as me. In addition, there are some high man, frequently said to modify the whole station structure to achieve integration and so on. A few days down, unexpectedly no fruit. So, I intend to try it by myself. As a result, it was simple and successful.
3. System Integration Steps
As time is limited, these steps do not capture. Because we are either doing SEO, or to do the development, I write out in words, presumably everyone can understand what I said. Start now.
WP and Alipay system integration of the main steps:
A, the application Alipay merchant service
b, get the System integration API
C, interface installation and code modification
specifically said:
(1) Register a Alipay account number. Here: https://www.alipay.com/
(2) After login, into the Alipay home "business Services"-"instant to the account (I need)"
(3) Fill in the application form of the Merchant Service Center, and carry on the real name attestation of "contract merchant". Need you to provide real personal information and mobile phone number in order to receive the authentication code
(4) Submit information and wait about 24 hours
(5) receive the signed Merchant to confirm the mail and download the code example that the system integrates needs. If you do not understand the code, login to pay PO official online "Business Services", click into the contract list of "Application integration", request Alipay 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, and tell her that you are the webmaster, ask her to help you set up the interface program based on WP. About 2 hours later, an interface based on the WP environment will be sent to your email.
(7) The following operations, are based on the PHP host. Win should be similar, but no one uses IIS to configure WP?
(8) will pay treasure sent to your interface program (RAR compression package), after decompression, and then compressed into a zip. As for why, because I am GD host, can only use zip, at this time, your interface program has been compressed into alipay.zip
(9) Create a new folder/alipay on your server and upload the Alipay.zip compression package to the directory. Decompression on the server side
(10) After the completion of decompression, access to the payment of the Treasure Interface program path: yourdomain.com/alipay/index.php
(11) At this point, WP and ALIPAY system results have been completed half. Now the payment channel is ready to use! You can try to make a payment in the user's capacity and check to the Alipay account to see if the payment has been recorded.
(12) Some modifications: Alipay default interface page may not be commensurate with the overall style of our site. We may need to make some changes to the page. Such as:
L Modify the name of the payment page in the <TD class= "title" > Office;
L Modify the label of the form-left> the <td class= "form";
L in <span id= "Glowtext" > Modify the text block in the right column of the payment page
L Modify footer location content at <td class= "lh15 txt12" >, but should keep Alipay link information;
Some other basic settings:
L Open alipay_config.php File
L Modify the Jump page after payment is completed at $return_url=. You may need to manually create a complete-payment.html page in the root directory to let the user know what to do after handing over the money to you;
L set up the anti-phishing function at $antiphishing=. Alipay proposal, before opening and official contact, once opened can not be closed;
L in $mainname= "payee name"; In this line of code, replace the name of the payee with the name of your site.
4. Some feelings
(1) the best is applicable;
(2) Try to solve their own problems, many problems will be solved;
(3) technology is not a supernatural event, everything is rational, the general human intelligence enough to understand the majority of technical insider;
(4) In addition to some XHTML, there is no use of complex code modification;
(5) complete.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.