diff --git a/WePayV3/Transfers.php b/WePayV3/Transfers.php index 92c4575..c11a530 100644 --- a/WePayV3/Transfers.php +++ b/WePayV3/Transfers.php @@ -30,6 +30,7 @@ class Transfers extends BasicWePay * 新版商家转换到零钱 * @param $body * @return array|string + * @throws \WeChat\Exceptions\InvalidDecryptException * @throws \WeChat\Exceptions\InvalidResponseException * @link https://pay.weixin.qq.com/doc/v3/merchant/4012716434 */ @@ -44,6 +45,17 @@ class Transfers extends BasicWePay return $this->doRequest('POST', '/v3/fund-app/mch-transfer/transfer-bills', json_encode($body, JSON_UNESCAPED_UNICODE), true); } + /** + * 查询转账结果 + * @param $out_bill_no + * @return array|string + * @throws \WeChat\Exceptions\InvalidResponseException + */ + public function billsQuery($out_bill_no) + { + return $this->doRequest('GET', "/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{$out_bill_no}", '', true); + } + /** * 发起商家批量转账 * @param array $body