付款码支付
收银员使用扫码设备读取微信用户付款码以后,二维码或条码信息会传送至商户收银台,由商户收银台或者商户后台调用该接口发起支付。 官方文档
js
wxpay.v3.pay.partner.transactions.codepay.post({
sp_appid,
sp_mchid,
sub_appid,
sub_mchid,
description,
out_trade_no,
attach,
goods_tag,
support_fapiao,
payer,
amount,
scene_info,
detail,
settle_info,
})
.then(
({
data: {
sp_appid,
sp_mchid,
sub_appid,
sub_mchid,
out_trade_no,
transaction_id,
trade_type,
bank_type,
success_time,
trade_state,
trade_state_desc,
attach,
payer,
amount,
promotion_detail,
},
}) => ({
sp_appid,
sp_mchid,
sub_appid,
sub_mchid,
out_trade_no,
transaction_id,
trade_type,
bank_type,
success_time,
trade_state,
trade_state_desc,
attach,
payer,
amount,
promotion_detail,
})
)