Skip to content

微信支付企业付款

borball edited this page Dec 29, 2016 · 2 revisions

微信支付企业付款

企业付款

TransferRequest transferRequest = new TransferRequest();
transferRequest.setAmount(100);
transferRequest.setCheckName("NO_CHECK");
transferRequest.setClientIp("127.0.0.1");
transferRequest.setDesc("测试企业付款");
transferRequest.setOpenId(user);
transferRequest.setPartnerTradeNo("129206390120161203000010001" + i);

Transfers.defaultTransfers().transfer(transferRequest);

//或者
Transfers.with(paySetting).transfer(transferRequest);

查询企业付款

TransferResult transferResult = Transfers.defaultTransfers().query("1292063901201512030000000001");

//或者
TransferResult transferResult = Transfers.with(paySetting).query("1292063901201512030000000001");