Skip to content

同步服务订单信息

由于收款商户进行的某些“线下操作”会导致微信支付侧的订单状态与实际情况不符。**前置条件:**同步商户渠道收款成功信息时,即场景类型=“Order_Paid”,订单的状态需为 [FINISHED:商户完结订单] 官方文档 官方文档

js
wxpay
.
v3
.
payscore
.
serviceorder
.
_out_order_no_
.
sync
.
post
({
appid
,
service_id
,
type
,
detail
,
}, {
out_order_no
})
.
then
(
({
data
: {
out_order_no
,
service_id
,
appid
,
mchid
,
service_introduction
,
state
,
state_description
,
post_payments
,
post_discounts
,
risk_fund
,
total_amount
,
need_collection
,
collection
,
time_range
,
location
,
attach
,
notify_url
,
openid
,
order_id
,
}, }) => ({
out_order_no
,
service_id
,
appid
,
mchid
,
service_introduction
,
state
,
state_description
,
post_payments
,
post_discounts
,
risk_fund
,
total_amount
,
need_collection
,
collection
,
time_range
,
location
,
attach
,
notify_url
,
openid
,
order_id
,
}) )

Released under the MIT License. (SITEMAP)