From 77915db87635c514576550dd15355987cadefc78 Mon Sep 17 00:00:00 2001 From: Andy Coates Date: Thu, 8 Jan 2015 11:19:06 +0000 Subject: [PATCH] Added method to get authCode --- src/Omnipay/DataCash/Message/Response.php | 5 +++++ 1 file changed, 5 insertions(+) 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;