自定义交易组件,同步订单信息失败,麻烦看一下是什么问题,救急?
发布于 4 年前 作者 yetao 5758 次浏览 来自 问答

问题描述:使用requestOrderPayment支付完成后,同步订单信息失败,返回订单不存在

下面是前端调用的代码

res.pay_info就是下面这些信息

{
	"timeStamp": "1620441243",
	"nonceStr": "QJNRu2tEVidcXMKqOGFArWm0YPDh5enk",
	"package": "prepay_id=wx08103403322660df48b184c995078f0000",
	"signType": "MD5",
	"paySign": "523DC8DB624656D3DEA54C14EDB32DA8",
	"orderInfo": {
		"create_time": "2021-05-08 10:34:02",
		"type": 0,
		"openid": "oZuMj5a8nb0vvBb_mjoS6y6E-PG8",
		"out_user_id": "1",
		"out_order_id": "s20210508103402698991005DNFPSB",
		"path": "pages/orderDetail/orderDetail?id=31582",
		"order_detail": {
			"product_infos": [{
				"out_product_id": "645",
				"out_sku_id": "",
				"product_cnt": 1,
				"sale_price": 100,
				"path": "pages/goodsDetail/goodsDetail?id=645",
				"title": "港华紫荆台式双灶BZ-WT08S",
				"head_img": "https://cdn-whtrqls.babel-group.cn/upload/images/original/2021-04-26/202104261532292a7f4f8d529ba8e44c899f8bf78da857.png"
			}],
			"pay_info": {
				"pay_method": "微信支付",
				"prepay_id": "wx08103403322660df48b184c995078f0000",
				"prepay_time": "2021-05-08 10:34:03"
			},
			"price_info": {
				"order_price": 100,
				"freight": 0
			}
		},
		"delivery_detail": {
			"delivery_type": 3
		},
		"address_info": {
			"receiver_name": "张三",
			"detailed_address": "控股大厦",
			"tel_number": "13312122222"
		}

	}
}

这是商户号的订单信息

同步接口的参数:

{"out_order_id":"s20210508103402698991005DNFPSB","openid":"oZuMj5a8nb0vvBb_mjoS6y6E-PG8","action_type":1,"transaction_id":"4200001017202105081857916495","pay_time":"2021-05-08 10:34:43"}

接口返回:

{"errcode":1010011,"errmsg":"订单不存在 rid: 6095f915-241a065b-6213c344"}

回到顶部