public function setMerchantData($data, $alreadyEncoded = false) {
		if (!$alreadyEncoded) {
			$data = base64_encode($data);
		}
		if (strlen($data) > 255) {
			throw new Exception("Merchant data can not be longer than 255 characters after base64 encoding.");
		}
		$this->merchantData = $data;
		return $this;
	}
public function setMerchantData($data, $alreadyEncoded = false) {
		if (!$alreadyEncoded) {
			$data = base64_encode($data);
		}
		if (strlen($data) > 255) {
			throw new Exception("Merchant data can not be longer than 255 characters after base64 encoding.");
		}
		$this->merchantData = $data;
		return $this;
	}
public function setMerchantData ( $ data , $ alreadyEncoded = false ) { if ( ! $ alreadyEncoded ) { $ data = base64_encode ( $ data ) ; } if ( strlen ( $ data ) > 255 ) { throw new Exception ( "Merchant data can not be longer than 255 characters after base64 encoding." ) ; } $ this -> merchantData = $ data ; return $ this ; }
Set some arbitrary data you will receive back when customer returns

@param string $data
@param bool $alreadyEncoded True if given $data is already encoded to Base64

@return Payment Fluent interface

@throws Exception When the data is too long and can't be encoded.
Set some arbitrary data you will receive back when customer returns