| Total Complexity | 1 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class WebPayment extends AbstractAlipay |
||
| 12 | { |
||
| 13 | use FormTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Use web to pay for order. |
||
| 17 | * |
||
| 18 | * @param string $gateway |
||
| 19 | * @param array $payload |
||
| 20 | * |
||
| 21 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 22 | * |
||
| 23 | * @throws \InvalidArgumentException |
||
| 24 | * @throws \Nilnice\Payment\Exception\InvalidKeyException |
||
| 25 | */ |
||
| 26 | 3 | public function toPay(string $gateway, array $payload) : Response |
|
| 45 |