Markette\Gopay\Service\AbstractPaymentService::getPaymentChannels PHP 메소드

getPaymentChannels() 보호된 메소드

protected getPaymentChannels ( string $channel ) : array
$channel string
리턴 array
    protected function getPaymentChannels($channel)
    {
        if (!isset($this->channels[$channel]) && $channel !== Gopay::METHOD_USER_SELECT) {
            throw new InvalidArgumentException("Payment channel '{$channel}' is not supported");
        }
        if ($this->changeChannel === TRUE) {
            $channels = array_keys($this->channels);
        } else {
            $channels = [$channel];
        }
        return $channels;
    }