Are you sure you can receive notifications using WeChat payment mode 2 notify_url? I've been at it for two days. . . .

WBOY
Release: 2016-08-25 10:37:11
Original
1183 people have browsed it

http://www.yimifa.com/pay-not...
This is the address of my notify_url

Reply content:

http://www.yimifa.com/pay-not...
This is the address of my notify_url

This notification is not the kind of parameter notification you imagined. What it pushes is a file stream in XML format, which can be read directly from the request

Post your code for sending the payment request and the code for the callback page. Please explain your operating environment as well, so that everyone can help you.. There is no problem at all.

What is your error message?
You can refer to the open source sample code github-WeChat payment https://github.com/dcloudio/H...
Specific parameters
$result = array(

<code> 'appid' => $appid,
 'noncestr'=>$parameters['nonce_str'],
 'package'=>'Sign=WXPay',
 'partnerid'=>$mch_id,
 'prepayid'=>$prepay_id,
 'timestamp'=> time(),</code>
Copy after login

);
// Re-sign
$result['sign'] = $this->getSign($result, $key);

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!