| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 | 
							- <?php
 
- namespace Yansongda\Pay\Contracts;
 
- use Symfony\Component\HttpFoundation\Response;
 
- use Yansongda\Supports\Collection;
 
- interface GatewayApplicationInterface
 
- {
 
-     /**
 
-      * To pay.
 
-      *
 
-      * @author yansongda <me@yansonga.cn>
 
-      *
 
-      * @param string $gateway
 
-      * @param array  $params
 
-      *
 
-      * @return Collection|Response
 
-      */
 
-     public function pay($gateway, $params);
 
-     /**
 
-      * Query an order.
 
-      *
 
-      * @author yansongda <me@yansongda.cn>
 
-      *
 
-      * @param string|array $order
 
-      *
 
-      * @return Collection
 
-      */
 
-     public function find($order, string $type);
 
-     /**
 
-      * Refund an order.
 
-      *
 
-      * @author yansongda <me@yansongda.cn>
 
-      *
 
-      * @return Collection
 
-      */
 
-     public function refund(array $order);
 
-     /**
 
-      * Cancel an order.
 
-      *
 
-      * @author yansongda <me@yansongda.cn>
 
-      *
 
-      * @param string|array $order
 
-      *
 
-      * @return Collection
 
-      */
 
-     public function cancel($order);
 
-     /**
 
-      * Close an order.
 
-      *
 
-      * @author yansongda <me@yansongda.cn>
 
-      *
 
-      * @param string|array $order
 
-      *
 
-      * @return Collection
 
-      */
 
-     public function close($order);
 
-     /**
 
-      * Verify a request.
 
-      *
 
-      * @author yansongda <me@yansongda.cn>
 
-      *
 
-      * @param string|array|null $content
 
-      *
 
-      * @return Collection
 
-      */
 
-     public function verify($content, bool $refund);
 
-     /**
 
-      * Echo success to server.
 
-      *
 
-      * @author yansongda <me@yansongda.cn>
 
-      *
 
-      * @return Response
 
-      */
 
-     public function success();
 
- }
 
 
  |