Skip to content

Commit c901adf

Browse files
committed
fix: 增加支付宝退款查询接口
1 parent 15622a4 commit c901adf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

WeChat/Contracts/BasicAliPay.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,22 @@ public function refund($options, $refundAmount = null)
152152
return $this->getResult($options);
153153
}
154154

155+
/**
156+
* 支付宝订单退款查询
157+
* @param array|string $options 退款参数或退款商户订单号
158+
* @param array|null $queryOptions 查询选项
159+
* @return array|bool
160+
* @throws \WeChat\Exceptions\InvalidResponseException
161+
* @throws \WeChat\Exceptions\LocalCacheException
162+
*/
163+
public function refundQuery($options, $queryOptions = null)
164+
{
165+
if (!is_array($options)) $options = ['out_trade_no' => $options];
166+
empty($queryOptions) || $options['query_options'] = $queryOptions;
167+
$this->options->set('method', 'alipay.trade.fastpay.refund.query');
168+
return $this->getResult($options);
169+
}
170+
155171
/**
156172
* 关闭支付宝进行中的订单
157173
* @param array|string $options

0 commit comments

Comments
 (0)