Skip to content

Commit

Permalink
Merge pull request #15 from delatbabel/update-error-code
Browse files Browse the repository at this point in the history
Update error code
  • Loading branch information
delatbabel committed Mar 25, 2016
2 parents 0160bd7 + 0687dff commit 8c859bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment
processing library for PHP 5.3+. This package implements [Pin](https://pin.net.au/) support for Omnipay.

[Pin Payments](https://pin.net.au/) is an Australian all-in-one payment system, allowing you
to accept multi-currency credit card payments without a security
deposit or a merchant account.

## Installation

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it
Expand Down
7 changes: 7 additions & 0 deletions src/Message/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,11 @@ public function getMessage()
return $this->data['error_description'];
}
}

public function getCode()
{
if (isset($this->data['error'])) {
return $this->data['error'];
}
}
}

0 comments on commit 8c859bc

Please sign in to comment.