Home  >  Article  >  Backend Development  >  When WeChat payment is completed, the parameter received by notify_url does not contain product_id. It gives an openid. What should I do if I am a mobile phone user?

When WeChat payment is completed, the parameter received by notify_url does not contain product_id. It gives an openid. What should I do if I am a mobile phone user?

WBOY
WBOYOriginal
2016-08-26 10:28:251648browse

这是发给我的数据:













2


回复内容:

这是发给我的数据:













2


首先,out_trade_no是你自己生成的,你可以根据这个number去找到相应的数据库数据(你不可能自己不保存吧)
另外生成订单时,用attach来添加额外参数,在通知时会原样返回。

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