Source/SimpleTransaction.php
protected function prepareFields($hashName = '')
    {
        if (!is_string($hashName)) {
            $this->errorMessage[] = 'PREPARE: Hash name is not string!';
            return false;
        }
        $this->setHashData();
        $this->setFormData();
        if ($this->hashData) {
            $this->formData[$hashName] = $this->createHashString($this->hashData);
        }
        $this->checkRequired();
        if (count($this->missing) == 0) {
            return true;
        }
        $this->debugMessage[] = 'PREPARE: Missing required fields';
        $this->errorMessage[] = 'PREPARE: Missing required fields';
        return false;
    }
protected function prepareFields($hashName = '')
    {
        if (!is_string($hashName)) {
            $this->errorMessage[] = 'PREPARE: Hash name is not string!';
            return false;
        }
        $this->setHashData();
        $this->setFormData();
        if ($this->hashData) {
            $this->formData[$hashName] = $this->createHashString($this->hashData);
        }
        $this->checkRequired();
        if (count($this->missing) == 0) {
            return true;
        }
        $this->debugMessage[] = 'PREPARE: Missing required fields';
        $this->errorMessage[] = 'PREPARE: Missing required fields';
        return false;
    }
protected function prepareFields ( $ hashName = '' ) { if ( ! is_string ( $ hashName ) ) { $ this -> errorMessage [ ] = 'PREPARE: Hash name is not string!' ; return false ; } $ this -> setHashData ( ) ; $ this -> setFormData ( ) ; if ( $ this -> hashData ) { $ this -> formData [ $ hashName ] = $ this -> createHashString ( $ this -> hashData ) ; } $ this -> checkRequired ( ) ; if ( count ( $ this -> missing ) == 0 ) { return true ; } $ this -> debugMessage [ ] = 'PREPARE: Missing required fields' ; $ this -> errorMessage [ ] = 'PREPARE: Missing required fields' ; return false ; }
Finalizes and prepares fields for sending

@param string $hashName Name of the field containing HMAC HASH code

@return boolean
Finalizes and prepares fields for sending