微信支付结果查询代码解析
时间:2023年05月25日
/来源:网络
/编辑:佚名
微信支付 开发文档: https://pay.weixin.qq.com/wiki/doc/api/index.html
未支付
Array
(
[appid] => **********
[device_info] => Array
(
)
[mch_id] => *******
[nonce_str] => zGAdkvGlF8XyY6yF
[out_trade_no] => BuyGroupPay_0000_158****
[result_code] => SUCCESS
[return_code] => SUCCESS
[return_msg] => OK
[sign] => 5D55BDBE676E3B58A41F069CD7F4EFC2
[total_fee] => 500
[trade_state] => NOTPAY
[trade_state_desc] => 订单未支付
)
支付成功
Array
(
[appid] => *********
[attach] => 单篇权限购买,UID:194719,UName:℡****
[bank_type] => OTHERS
[cash_fee] => 500
[cash_fee_type] => CNY
[fee_type] => CNY
[is_subscribe] => N
[mch_id] => 1526422061
[nonce_str] => S72VbwVv9mkHllYc
[openid] => ******
[out_trade_no] => BuyGroupPay_0000_*****61
[result_code] => SUCCESS
[return_code] => SUCCESS
[return_msg] => OK
[sign] => 2B6B5622E712F497D8FD52DB0A64E5B4
[time_end] => 20200427173817
[total_fee] => 500
[trade_state] => SUCCESS
[trade_state_desc] => 支付成功
[trade_type] => NATIVE
[transaction_id] => 4200000531202004277575529544
)
订单不存在
Array
(
[appid] => **********
[err_code] => ORDERNOTEXIST
[err_code_des] => 订单不存在
[mch_id] => *********
[nonce_str] => ***********
[result_code] => FAIL
[return_code] => SUCCESS
[return_msg] => OK
[sign] => D12472C59BC94C0CDC1B0C797CEAB80A
)
订单已经关闭
Array
(
[appid] => 33333333333
[attach] => 购买点数,UID:,UName:
[mch_id] => ********
[nonce_str] => vHpYHtEkiBV4vwk2
[out_trade_no] => BuyGroupPay_0000_1570016651
[result_code] => SUCCESS
[return_code] => SUCCESS
[return_msg] => OK
[sign] => 7856F6561879DA7084504869F0725ADA
[trade_state] => CLOSED
[trade_state_desc] => 订单已关闭
)
未支付
Array
(
[appid] => **********
[device_info] => Array
(
)
[mch_id] => *******
[nonce_str] => zGAdkvGlF8XyY6yF
[out_trade_no] => BuyGroupPay_0000_158****
[result_code] => SUCCESS
[return_code] => SUCCESS
[return_msg] => OK
[sign] => 5D55BDBE676E3B58A41F069CD7F4EFC2
[total_fee] => 500
[trade_state] => NOTPAY
[trade_state_desc] => 订单未支付
)
支付成功
Array
(
[appid] => *********
[attach] => 单篇权限购买,UID:194719,UName:℡****
[bank_type] => OTHERS
[cash_fee] => 500
[cash_fee_type] => CNY
[fee_type] => CNY
[is_subscribe] => N
[mch_id] => 1526422061
[nonce_str] => S72VbwVv9mkHllYc
[openid] => ******
[out_trade_no] => BuyGroupPay_0000_*****61
[result_code] => SUCCESS
[return_code] => SUCCESS
[return_msg] => OK
[sign] => 2B6B5622E712F497D8FD52DB0A64E5B4
[time_end] => 20200427173817
[total_fee] => 500
[trade_state] => SUCCESS
[trade_state_desc] => 支付成功
[trade_type] => NATIVE
[transaction_id] => 4200000531202004277575529544
)
订单不存在
Array
(
[appid] => **********
[err_code] => ORDERNOTEXIST
[err_code_des] => 订单不存在
[mch_id] => *********
[nonce_str] => ***********
[result_code] => FAIL
[return_code] => SUCCESS
[return_msg] => OK
[sign] => D12472C59BC94C0CDC1B0C797CEAB80A
)
订单已经关闭
Array
(
[appid] => 33333333333
[attach] => 购买点数,UID:,UName:
[mch_id] => ********
[nonce_str] => vHpYHtEkiBV4vwk2
[out_trade_no] => BuyGroupPay_0000_1570016651
[result_code] => SUCCESS
[return_code] => SUCCESS
[return_msg] => OK
[sign] => 7856F6561879DA7084504869F0725ADA
[trade_state] => CLOSED
[trade_state_desc] => 订单已关闭
)
新闻资讯 更多
- 【建站知识】查询nginx日志状态码大于400的请求并打印整行04-03
- 【建站知识】Python中的logger和handler到底是个什么?04-03
- 【建站知识】python3拉勾网爬虫之(您操作太频繁,请稍后访问)04-03
- 【建站知识】xpath 获取meta里的keywords及description的方法04-03
- 【建站知识】python向上取整以50为界04-03
- 【建站知识】scrapy xpath遇见乱码解决04-03
- 【建站知识】scrapy爬取后中文乱码,解决word转为html 时cp1252编码问题04-03
- 【建站知识】scrapy采集—爬取中文乱码,gb2312转为utf-804-03