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

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

WBOY
WBOYOriginal
2016-08-25 10:37:111200browse

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>

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

Statement:
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