lokielse / omnipay-wechatpay

(微信支付)WeChatPay driver for the Omnipay PHP payment processing library
MIT License
316 stars 103 forks source link

有可能是个严重的问题 #32

Closed waveiron closed 7 years ago

waveiron commented 7 years ago
1

在订单只是创建并未支付的情况下调用$res->isPaid()会返回true。 是我的用法不对?

lokielse commented 7 years ago

@waveiron 你这个数据是什么接口下得到的?是支付异步通知的数据验证吗?

根据官方文档,没有trade_state这个参数呢

https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_7&index=3

文档中明确提出 交易是否成功需要查看result_code来判断

lokielse commented 7 years ago

https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_2

查询订单接口有这个返回参数trade_state,但是没有QueryOrderResponse这个类并没有isPaid这个方法