Skip to content

Commit cdf88da

Browse files
committed
fix: 增加转账结果查询
1 parent 59ca095 commit cdf88da

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

WePayV3/Transfers.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class Transfers extends BasicWePay
3030
* 新版商家转换到零钱
3131
* @param $body
3232
* @return array|string
33+
* @throws \WeChat\Exceptions\InvalidDecryptException
3334
* @throws \WeChat\Exceptions\InvalidResponseException
3435
* @link https://pay.weixin.qq.com/doc/v3/merchant/4012716434
3536
*/
@@ -44,6 +45,17 @@ public function bills($body)
4445
return $this->doRequest('POST', '/v3/fund-app/mch-transfer/transfer-bills', json_encode($body, JSON_UNESCAPED_UNICODE), true);
4546
}
4647

48+
/**
49+
* 查询转账结果
50+
* @param $out_bill_no
51+
* @return array|string
52+
* @throws \WeChat\Exceptions\InvalidResponseException
53+
*/
54+
public function billsQuery($out_bill_no)
55+
{
56+
return $this->doRequest('GET', "/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{$out_bill_no}", '', true);
57+
}
58+
4759
/**
4860
* 发起商家批量转账
4961
* @param array $body

0 commit comments

Comments
 (0)