Trustly/Data/jsonrpcnotificationresponse.php
public function getResult($name=NULL) {
		$result = NULL;
		if(isset($this->payload['result'])) {
			$result = $this->payload['result'];
		} else {
			return NULL;
		}

		if(isset($name)) {
			if(isset($result[$name])) {
				return $result[$name];
			}
		} else {
			return $result;
		}
	}
public function getResult($name=NULL) {
		$result = NULL;
		if(isset($this->payload['result'])) {
			$result = $this->payload['result'];
		} else {
			return NULL;
		}

		if(isset($name)) {
			if(isset($result[$name])) {
				return $result[$name];
			}
		} else {
			return $result;
		}
	}
public function getResult ( $ name = NULL ) { $ result = NULL ; if ( isset ( $ this -> payload [ 'result' ] ) ) { $ result = $ this -> payload [ 'result' ] ; } else { return NULL ; } if ( isset ( $ name ) ) { if ( isset ( $ result [ $ name ] ) ) { return $ result [ $ name ] ; } } else { return $ result ; } }
Get the value of a parameter in the result 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 result section of the notification response .