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