Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dev#27):php sdk 部分退款 #137

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion php/src/Payment/Common/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -239,6 +240,7 @@ public function refund($outTradeNo, $refundAmount){
];
$bizParams = [
"out_trade_no" => $outTradeNo,
"out_request_no" => $outRequestNo, //标识一次退款请求,同一笔交易多次退款需要保证唯一,如需部分退款,则此参数必传。
"refund_amount" => $refundAmount
];
$textParams = [];
Expand Down