查询订单剩余可出境余额
电商收付通中,针对多次请求出境的场景,商家需要查询可出境金额之后再进行出境请求其中:订单剩余可出境金额=订单可出境金额-已累计出境金额 官方文档
js
wxpay.v3.fundsToOversea.transactions._transaction_id_.available_abroad_amounts.get({
transaction_id,
params,
})
.then(
({
data: {
transaction_id,
available_abroad_amount,
},
}) => ({
transaction_id,
available_abroad_amount,
})
)