diff --git a/src/Omnipay/DataCash/Message/Response.php b/src/Omnipay/DataCash/Message/Response.php index ab30cc9..8c142d4 100644 --- a/src/Omnipay/DataCash/Message/Response.php +++ b/src/Omnipay/DataCash/Message/Response.php @@ -43,6 +43,11 @@ public function getTransactionId() return (string) $this->data->merchantreference; } + public function getAuthCode() + { + return (string) (isset($this->data->CardTxn->authcode) ? $this->data->CardTxn->authcode : ''); + } + public function getMessage() { return (string) $this->data->reason;