Trustly/Data/data.php
public function get($name=NULL) {
		if($name === NULL) {
			return $this->payload;
		} else {
			if(isset($this->payload[$name])) {
				return $this->payload[$name];
			}
		}
		return NULL;
	}
public function get($name=NULL) {
		if($name === NULL) {
			return $this->payload;
		} else {
			if(isset($this->payload[$name])) {
				return $this->payload[$name];
			}
		}
		return NULL;
	}
public function get ( $ name = NULL ) { if ( $ name === NULL ) { return $ this -> payload ; } else { if ( isset ( $ this -> payload [ $ name ] ) ) { return $ this -> payload [ $ name ] ; } } return NULL ; }
Get the specific data value from the payload or the full payload if
no value is supplied

@param string $name The optional data parameter to get. If NULL then the
entire payload will be returned.

@return mixed value
Get the specific data value from the payload or the full payload if no value is supplied