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