public function setMerchantData($merchantdata='')
    {
        if ($this->isEmpty($merchantdata)) {
            throw new TpvException('Add merchant data');
        }

        $this->_setParameters['DS_MERCHANT_MERCHANTDATA'] = trim($merchantdata);

        return $this;
    }
public function setMerchantData($merchantdata='')
    {
        if ($this->isEmpty($merchantdata)) {
            throw new TpvException('Add merchant data');
        }

        $this->_setParameters['DS_MERCHANT_MERCHANTDATA'] = trim($merchantdata);

        return $this;
    }
public function setMerchantData ( $ merchantdata = '' ) { if ( $ this -> isEmpty ( $ merchantdata ) ) { throw new TpvException ( 'Add merchant data' ) ; } $ this -> _setParameters [ 'DS_MERCHANT_MERCHANTDATA' ] = trim ( $ merchantdata ) ; return $ this ; }
Optional field for the trade to be included in the data sent by the "on-line" response to trade if this option
has been chosen.

@param string $merchantdata

@return $this
@throws Exception
Optional field for the trade to be included in the data sent by the on - line response to trade if this option has been chosen .