Skip to content

Native下单(合作伙伴模式)

商户Native支付下单接口,微信后台系统返回链接参数code_url,商户后台系统将code_url值生成二维码图片,用户使用微信客户端扫码后发起支付。 官方文档

js

wxpay
.
v3
.
pay
.
partner
.
transactions
.
native
.
post
({
sp_mchid
,
sp_appid
,
sub_mchid
,
sub_appid
,
description
,
out_trade_no
,
notify_url
,
amount
: {
total
,
currency
},
}) .
then
(({
data
: {
code_url
} }) =>
code_url
)

Released under the MIT License. (SITEMAP)