在开发工具中,使用wx.requestOrderPayment接口,支付完成了一笔订单,orderInfo也正常传了,并支付成功。
但是调用同步接口时返回订单不存在,使用out_order_id和order_id都不行
{"order_id":"4200001019202105076001438525","openid":"oZuMj5a8nb0vvBb_mjoS6y6E-PG8","action_type":1,"transaction_id":"4200001019202105076001438525","pay_time":"2021-05-07 16:13:34"}
{"out_order_id":"s20210507161252936952000PX1N6Q","openid":"oZuMj5a8nb0vvBb_mjoS6y6E-PG8","action_type":1,"transaction_id":"4200001019202105076001438525","pay_time":"2021-05-07 16:13:34"}
接口返回:{"errcode":1010011,"errmsg":"订单不存在 rid: 6094fdfc-3be86440-3bca63f6"}
商户号能查看订单信息:
求解答
order_id并不是指你图上那个支付单号
请使用out_order_id即可解决
请求参数: {"out_order_id":"s20210507161252936952000PX1N6Q","openid":"oZuMj5a8nb0vvBb_mjoS6y6E-PG8","action_type":1,"transaction_id":"4200001019202105076001438525","pay_time":"2021-05-07 16:13:34"}
返回:{"errcode":1010011,"errmsg":"订单不存在 rid: 60950189-62c85497-66410905"}