Skip to content

Commit e4f9724

Browse files
committed
Add getCode() to ResponseInterface. Closes #25
1 parent dd456ac commit e4f9724

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Omnipay/Common/Message/AbstractResponse.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ public function getMessage()
5050
return null;
5151
}
5252

53+
public function getCode()
54+
{
55+
return null;
56+
}
57+
5358
public function getTransactionReference()
5459
{
5560
return null;

src/Omnipay/Common/Message/ResponseInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ public function isRedirect();
4444
*/
4545
public function getMessage();
4646

47+
/**
48+
* Response code
49+
*
50+
* @return string A response code from the payment gateway
51+
*/
52+
public function getCode();
53+
4754
/**
4855
* Gateway Reference
4956
*

0 commit comments

Comments
 (0)