@@ 143-150 (lines=8) @@ | ||
140 | * |
|
141 | * @return \EasyWeChat\Support\Collection |
|
142 | */ |
|
143 | public function query($orderNo, $type = self::OUT_TRADE_NO) |
|
144 | { |
|
145 | $params = [ |
|
146 | $type => $orderNo, |
|
147 | ]; |
|
148 | ||
149 | return $this->request($this->wrapApi(self::API_QUERY), $params); |
|
150 | } |
|
151 | ||
152 | /** |
|
153 | * Query order by transaction_id. |
|
@@ 273-280 (lines=8) @@ | ||
270 | * |
|
271 | * @return \EasyWeChat\Support\Collection |
|
272 | */ |
|
273 | public function queryRefund($orderNo, $type = self::OUT_TRADE_NO) |
|
274 | { |
|
275 | $params = [ |
|
276 | $type => $orderNo, |
|
277 | ]; |
|
278 | ||
279 | return $this->request($this->wrapApi(self::API_QUERY_REFUND), $params); |
|
280 | } |
|
281 | ||
282 | /** |
|
283 | * Query refund status by out_refund_no. |