src/ChargeContext.php
public function charge(array $data)
    {
        if (! $this->channel instanceof BaseStrategy) {
            throw new PayException('请检查初始化是否正确');
        }

        try {
            return $this->channel->handle($data);
        } catch (PayException $e) {
            throw $e;
        }
    }
public function charge(array $data)
    {
        if (! $this->channel instanceof BaseStrategy) {
            throw new PayException('请检查初始化是否正确');
        }

        try {
            return $this->channel->handle($data);
        } catch (PayException $e) {
            throw $e;
        }
    }
通过环境类调用支付
@param array $data

```php
$payData = [
"order_no" => createPayid(),
"amount" => '0.01',// 单位为元 ,最小为0.01
"client_ip" => '127.0.0.1',
"subject" => '测试支付',
"body" => '支付接口测试',
"extra_param"   => '',
];
```

@return array
@throws PayException
@author helei