Trustly/Data/jsonrpcnotificationrequest.php
public function getData($name=NULL) {
		if(!isset($this->payload['params']['data'])) {
			return NULL;
		}
		$data = $this->payload['params']['data'];
		if(isset($name)) {
			if(isset($data[$name])) {
				return $data[$name];
			}
		} else {
			return $data;
		}
		return NULL;
	}
public function getData($name=NULL) {
		if(!isset($this->payload['params']['data'])) {
			return NULL;
		}
		$data = $this->payload['params']['data'];
		if(isset($name)) {
			if(isset($data[$name])) {
				return $data[$name];
			}
		} else {
			return $data;
		}
		return NULL;
	}
public function getData ( $ name = NULL ) { if ( ! isset ( $ this -> payload [ 'params' ] [ 'data' ] ) ) { return NULL ; } $ data = $ this -> payload [ 'params' ] [ 'data' ] ; if ( isset ( $ name ) ) { if ( isset ( $ data [ $ name ] ) ) { return $ data [ $ name ] ; } } else { return $ data ; } return NULL ; }
Get the value of a parameter in the params->data section of the
notification response.

@param string $name The name of the parameter. Leave as NULL to get the
entire payload.

@return mixed The value sought after or the entire payload depending on
$name.
Get the value of a parameter in the params - > data section of the notification response .