/** * Get a code describing the status of this response * * @return string */ public function getCode() { return $this->isSuccessful() ? $this->data["Transaction"]->Response->ReasonCode : parent::getCode(); //$this->data["Transaction"]->AuthCode }
/** * Get a code describing the status of this response. * * @return string|null code */ public function getCode() { return $this->isSuccessful() ? $this->data["authCode"] : parent::getCode(); }