This article mainly shares with you the PHP version process of WeChat payment. With the widespread use of mobile services, as a PHPer, you need to understand some payment-related technologies. Below I will sort out a PHP version of the payment process for you.
Open WeChat payment(300元)
##2.
If the merchant platform login user binds a WeChat ID,
:## will appear
2.2
Basic configuration
##Pay for configuration options you may encounter.
Install certificate
2.3 Configure security API (required for development)
#Set a 32-length API key.
Download the certificate(The premise is that the control and certificate have been installed
)3. DevelopmentDemo(ThinkPHP
, modified according to the official version##3.2File details(lib
Configuration file
The specific processing logic of callbacks is in the core library , if the payment is completed, modify the status of the order in the database to 1
. (WeChat callback)
##3.2.2.3
1, the payment is successful, and you can customize the operation at this time.
Query the status of the order in the background,
Related recommendations:
PHP How to implement WeChat payment
WeChat payment refund function development
PHP development examples of WeChat payment and Alipay payment
The above is the detailed content of Summary and sharing of the PHP version process of WeChat payment. For more information, please follow other related articles on the PHP Chinese website!