Skip to content

创建支付分订单(合作伙伴模式)

用户申请使用服务时,商户可通过此接口申请创建微信支付分订单。 官方文档

js
wxpay
.
v3
.
payscore
.
partner
.
serviceorder
.
post
({
service_id
,
appid
,
sub_mchid
,
sub_appid
,
out_order_no
,
service_introduction
,
post_payments
,
post_discounts
,
risk_fund
,
time_range
,
location
,
openid
,
sub_openid
,
need_user_confirm
,
notify_url
,
attach
,
}) .
then
(
({
data
: {
out_order_no
,
service_id
,
appid
,
mchid
,
sub_appid
,
sub_mchid
,
service_introduction
,
state
,
state_description
,
post_payments
,
post_discounts
,
risk_fund
,
time_range
,
location
,
attach
,
notify_url
,
order_id
,
package
:
packageStr
,
}, }) => ({
out_order_no
,
service_id
,
appid
,
mchid
,
sub_appid
,
sub_mchid
,
service_introduction
,
state
,
state_description
,
post_payments
,
post_discounts
,
risk_fund
,
time_range
,
location
,
attach
,
notify_url
,
order_id
,
package
:
packageStr
,
}) )

查询支付分订单(合作伙伴模式)

用于查询单笔微信支付分订单详细信息。 官方文档

js
wxpay
.
v3
.
payscore
.
partner
.
serviceorder
.
get
({
params
,
}) .
then
(
({
data
: {
out_order_no
,
service_id
,
appid
,
mchid
,
sub_appid
,
sub_mchid
,
service_introduction
,
state
,
state_description
,
post_payments
,
post_discounts
,
risk_fund
,
time_range
,
location
,
attach
,
notify_url
,
order_id
,
package
:
packageStr
,
}, }) => ({
out_order_no
,
service_id
,
appid
,
mchid
,
sub_appid
,
sub_mchid
,
service_introduction
,
state
,
state_description
,
post_payments
,
post_discounts
,
risk_fund
,
time_range
,
location
,
attach
,
notify_url
,
order_id
,
package
:
packageStr
,
}) )

Released under the MIT License. (SITEMAP)