src/icepay_api_webservice.php
public function retrieveAllPaymentmethods()
    {
        if (isset($this->_paymentMethodsArray))
            return $this;

        $obj = new stdClass();
        // Must be in specific order for checksum ---------
        $obj->MerchantID = $this->_merchantID;
        $obj->SecretCode = $this->_secretCode;
        $obj->Timestamp = $this->getTimeStamp();
        // ------------------------------------------------
        $obj->Checksum = $this->generateChecksum($obj);
        $obj->SecretCode = null;

        $this->_paymentMethods = $this->client->GetMyPaymentMethods(array('request' => $obj));

        if (isset($this->_paymentMethods->GetMyPaymentMethodsResult->PaymentMethods->PaymentMethod)) {
            $this->_paymentMethodsArray = $this->clean($this->_paymentMethods);
        }

        return $this;
    }
public function retrieveAllPaymentmethods()
    {
        if (isset($this->_paymentMethodsArray))
            return $this;

        $obj = new stdClass();
        // Must be in specific order for checksum ---------
        $obj->MerchantID = $this->_merchantID;
        $obj->SecretCode = $this->_secretCode;
        $obj->Timestamp = $this->getTimeStamp();
        // ------------------------------------------------
        $obj->Checksum = $this->generateChecksum($obj);
        $obj->SecretCode = null;

        $this->_paymentMethods = $this->client->GetMyPaymentMethods(array('request' => $obj));

        if (isset($this->_paymentMethods->GetMyPaymentMethodsResult->PaymentMethods->PaymentMethod)) {
            $this->_paymentMethodsArray = $this->clean($this->_paymentMethods);
        }

        return $this;
    }
public function retrieveAllPaymentmethods ( ) { if ( isset ( $ this -> _paymentMethodsArray ) ) return $ this ; $ obj = new stdClass ( ) ; // Must be in specific order for checksum --------- $ obj -> MerchantID = $ this -> _merchantID ; $ obj -> SecretCode = $ this -> _secretCode ; $ obj -> Timestamp = $ this -> getTimeStamp ( ) ; // ------------------------------------------------ $ obj -> Checksum = $ this -> generateChecksum ( $ obj ) ; $ obj -> SecretCode = null ; $ this -> _paymentMethods = $ this -> client -> GetMyPaymentMethods ( array ( 'request' => $ obj ) ) ; if ( isset ( $ this -> _paymentMethods -> GetMyPaymentMethodsResult -> PaymentMethods -> PaymentMethod ) ) { $ this -> _paymentMethodsArray = $ this -> clean ( $ this -> _paymentMethods ) ; } return $ this ; }
Retrieve all payment methods

@since 2.1.0
@access public

@return \Icepay_Webservice_Paymentmethods
Retrieve all payment methods