Skip to content

Commit

Permalink
Added method to get authCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Coates committed Jan 8, 2015
1 parent 3754720 commit 77915db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Omnipay/DataCash/Message/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77915db

Please sign in to comment.