* * @param string $gateway * @param array $params * * @return Collection|Response */ public function pay($gateway, $params); /** * Query an order. * * @author yansongda * * @param string|array $order * * @return Collection */ public function find($order, string $type); /** * Refund an order. * * @author yansongda * * @return Collection */ public function refund(array $order); /** * Cancel an order. * * @author yansongda * * @param string|array $order * * @return Collection */ public function cancel($order); /** * Close an order. * * @author yansongda * * @param string|array $order * * @return Collection */ public function close($order); /** * Verify a request. * * @author yansongda * * @param string|array|null $content * * @return Collection */ public function verify($content, bool $refund); /** * Echo success to server. * * @author yansongda * * @return Response */ public function success(); }