Total Complexity | 1 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
8 | class ScanPayment extends AbstractAlipay |
||
9 | { |
||
10 | /** |
||
11 | * Use scan code to pay for order. |
||
12 | * |
||
13 | * @param string $gateway |
||
14 | * @param array $payload |
||
15 | * |
||
16 | * @return mixed|void |
||
17 | * @throws \InvalidArgumentException |
||
18 | * @throws \Nilnice\Payment\Exception\GatewayException |
||
19 | * @throws \Nilnice\Payment\Exception\InvalidKeyException |
||
20 | * @throws \Nilnice\Payment\Exception\InvalidSignException |
||
21 | * @throws \RuntimeException |
||
22 | */ |
||
23 | public function toPay(string $gateway, array $payload) |
||
38 |