From 35fb224cac6375e9395d55fc9b3f54011c888a34 Mon Sep 17 00:00:00 2001 From: "chendl@e-gets.com" Date: Sun, 6 Sep 2020 18:19:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(dev#27):php=20sdk=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E9=80=80=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- php/src/Payment/Common/Client.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php/src/Payment/Common/Client.php b/php/src/Payment/Common/Client.php index 81aaab0..ffc1893 100644 --- a/php/src/Payment/Common/Client.php +++ b/php/src/Payment/Common/Client.php @@ -200,10 +200,11 @@ public function query($outTradeNo){ /** * @param string $outTradeNo * @param string $refundAmount + * @param string $outRequestNo * @return AlipayTradeRefundResponse * @throws \Exception */ - public function refund($outTradeNo, $refundAmount){ + public function refund($outTradeNo, $refundAmount, $outRequestNo = null ){ $_runtime = [ "connectTimeout" => 15000, "readTimeout" => 15000, @@ -239,6 +240,7 @@ public function refund($outTradeNo, $refundAmount){ ]; $bizParams = [ "out_trade_no" => $outTradeNo, + "out_request_no" => $outRequestNo, //标识一次退款请求,同一笔交易多次退款需要保证唯一,如需部分退款,则此参数必传。 "refund_amount" => $refundAmount ]; $textParams = [];