src/Gateways/Wechat/BankGateway.php
public function apply(array $options)
    {
        if (!isset($options['partner_trade_no'])) {
            throw new InvalidArgumentException('Missing Options -- [partner_trade_no]');
        }
        if (!isset($options['enc_bank_no'])) {
            throw new InvalidArgumentException('Missing Options -- [enc_bank_no]');
        }
        if (!isset($options['enc_true_name'])) {
            throw new InvalidArgumentException('Missing Options -- [enc_true_name]');
        }
        if (!isset($options['bank_code'])) {
            throw new InvalidArgumentException('Missing Options -- [bank_code]');
        }
        if (!isset($options['amount'])) {
            throw new InvalidArgumentException('Missing Options -- [amount]');
        }
        unset($this->config['appid'], $this->config['notify_url'], $this->config['trade_type'], $this->config['sign_type']);
        if (isset($options['desc'])) {
            $this->config['desc'] = $options['desc'];
        }
        $this->config['amount'] = $options['amount'];
        $this->config['bank_code'] = $options['bank_code'];
        $this->config['partner_trade_no'] = $options['partner_trade_no'];
        $this->config['enc_bank_no'] = $this->rsaEncode($options['enc_bank_no']);
        $this->config['enc_true_name'] = $this->rsaEncode($options['enc_true_name']);
        return $this->getResult($this->gateway_paybank, true);
    }
public function apply(array $options)
    {
        if (!isset($options['partner_trade_no'])) {
            throw new InvalidArgumentException('Missing Options -- [partner_trade_no]');
        }
        if (!isset($options['enc_bank_no'])) {
            throw new InvalidArgumentException('Missing Options -- [enc_bank_no]');
        }
        if (!isset($options['enc_true_name'])) {
            throw new InvalidArgumentException('Missing Options -- [enc_true_name]');
        }
        if (!isset($options['bank_code'])) {
            throw new InvalidArgumentException('Missing Options -- [bank_code]');
        }
        if (!isset($options['amount'])) {
            throw new InvalidArgumentException('Missing Options -- [amount]');
        }
        unset($this->config['appid'], $this->config['notify_url'], $this->config['trade_type'], $this->config['sign_type']);
        if (isset($options['desc'])) {
            $this->config['desc'] = $options['desc'];
        }
        $this->config['amount'] = $options['amount'];
        $this->config['bank_code'] = $options['bank_code'];
        $this->config['partner_trade_no'] = $options['partner_trade_no'];
        $this->config['enc_bank_no'] = $this->rsaEncode($options['enc_bank_no']);
        $this->config['enc_true_name'] = $this->rsaEncode($options['enc_true_name']);
        return $this->getResult($this->gateway_paybank, true);
    }
发起支付
@param array $options
@return mixed
@throws Exception
@throws GatewayException