PHP development of WeChat payment instance code-php Tutorial

Source: Internet
Author: User
PHP development payment instance code

In php development, you can do too many things. First, let's look at the development experience of payment. later, we will gradually complete other aspects of development code.

Payment, even if you pay the deposit, you still process the test phase and cannot officially release it. You must pass the program test to submit the order, delivery notice and other data to the system to apply for release. Then, because the API is called through JS in the middle, you must set the payment authorization directory in the background and go to the level-2 level-3 directory, which is a small problem for using the MVC framework.

Using MVC, in the development environment, the url is often in the native url format and cannot be guaranteed to be in the form of a path. Therefore, the more reliable method is to create object subfolders. in this way, some modifications need to be made to the overall system url. In addition, the last step, js calls, for the js library provided here in the https://github.com/dodgepudding/wechat-php-sdk, in the call, must ensure that after the page load is triggered, that is, WeixinJSBridgeReady status, in this case, you can communicate with the browser to provide jsbridge. 5.24 example:

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.