1 | <?php |
||
14 | abstract class Gateway implements GatewayInterface |
||
15 | { |
||
16 | /** |
||
17 | * Mode. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $mode; |
||
22 | |||
23 | /** |
||
24 | * Gateway constructor. |
||
25 | * @throws InvalidArgumentException |
||
26 | */ |
||
27 | public function __construct() |
||
31 | |||
32 | /** |
||
33 | * Pay an order. |
||
34 | * |
||
35 | * @author yansongda <[email protected]> |
||
36 | * |
||
37 | * @param string $endpoint |
||
38 | * @param array $payload |
||
39 | * |
||
40 | * @return Collection |
||
41 | */ |
||
42 | abstract public function pay($endpoint, array $payload); |
||
43 | |||
44 | } |