对接自定义交易组件,后端:
- 通过order/add(https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/add_order_new.html)接口生成订单,
response:
{
"order_id":3302645269677080600,
"out_order_id":"416500809778875"
}
上报参数fund_type=1,需要生成支付参数;
2. 在访问生成支付参数时order/getpaymentparams(https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/getpaymentparams.htm),报错:订单不存在。无法继续进行。
参数如下:
访问时间:2022-04-16 11:49:32
request:
{
"order_id":3302645269677080600,
"out_order_id":"416500809778875",
"openid":"odW795Wq7qxk-fJN4JWPLZxt6TLc"
}
response:
{
"errcode":1010011,
"errmsg":"订单不存在 rid: 625a3cd4-636e51d5-16535c95"
}
IP白名单也没有问题。麻烦协助排查,问题出现在哪里?
生成支付参数,只传out_order_id就OK。
这个订单的真实order_id是3302645269677080832,不是3302645269677080600,请检查是否订单号数据精度丢失