src/icepay_api_webservice.php
public function selectPaymentMethodByCode($name)
    {
        if (!isset($this->_paymentMethodsArray))
            throw new Exception("No data loaded");
        foreach ($this->_paymentMethodsArray as $paymentMethod) {
            if ($paymentMethod["PaymentMethodCode"] == strtoupper($name)) {
                $this->_methodData = $paymentMethod;
                break;
            }
        }
        return $this;
    }
public function selectPaymentMethodByCode($name)
    {
        if (!isset($this->_paymentMethodsArray))
            throw new Exception("No data loaded");
        foreach ($this->_paymentMethodsArray as $paymentMethod) {
            if ($paymentMethod["PaymentMethodCode"] == strtoupper($name)) {
                $this->_methodData = $paymentMethod;
                break;
            }
        }
        return $this;
    }
public function selectPaymentMethodByCode ( $ name ) { if ( ! isset ( $ this -> _paymentMethodsArray ) ) throw new Exception ( "No data loaded" ) ; foreach ( $ this -> _paymentMethodsArray as $ paymentMethod ) { if ( $ paymentMethod [ "PaymentMethodCode" ] == strtoupper ( $ name ) ) { $ this -> _methodData = $ paymentMethod ; break ; } } return $ this ; }
Select the payment method by code

@since 2.1.0
@access public
@param string $name
@return \Icepay_Webservice_Paymentmethod
@throws Exception
Select the payment method by code