File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,22 @@ public function refund($options, $refundAmount = null)
152
152
return $ this ->getResult ($ options );
153
153
}
154
154
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
+
155
171
/**
156
172
* 关闭支付宝进行中的订单
157
173
* @param array|string $options
You can’t perform that action at this time.
0 commit comments