From d04807bd54ed266e810e6058f93a160df88410f0 Mon Sep 17 00:00:00 2001 From: Del Date: Sat, 26 Mar 2016 01:49:09 +0800 Subject: [PATCH 1/2] Return correct error code --- src/Message/Response.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Message/Response.php b/src/Message/Response.php index 5437dce..c7f4e38 100644 --- a/src/Message/Response.php +++ b/src/Message/Response.php @@ -86,4 +86,11 @@ public function getMessage() return $this->data['error_description']; } } + + public function getCode() + { + if (isset($this->data['error'])) { + return $this->data['error']; + } + } } From 0687dff2305b0fabf3453c9b6843b937f62f0660 Mon Sep 17 00:00:00 2001 From: Del Date: Sat, 26 Mar 2016 01:50:54 +0800 Subject: [PATCH 2/2] Update README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0a2969f..ecfc9fa 100644 --- a/README.md +++ b/README.md @@ -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