| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 33.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class WapPayment extends AbstractWechat |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Use wap(H5) to pay for order. |
||
| 13 | * |
||
| 14 | * @param string $gateway |
||
| 15 | * @param array $payload |
||
| 16 | * |
||
| 17 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 18 | * |
||
| 19 | * @throws \InvalidArgumentException |
||
| 20 | * @throws \Nilnice\Payment\Exception\GatewayException |
||
| 21 | * @throws \Nilnice\Payment\Exception\InvalidKeyException |
||
| 22 | * @throws \Nilnice\Payment\Exception\InvalidSignException |
||
| 23 | */ |
||
| 24 | 3 | public function toPay(string $gateway, array $payload) : Response |
|
| 40 |