Skip to content

Commit 0ee00e2

Browse files
committed
Merge pull request #41 from eileenmcnaughton/master
#261 clarify meaning of transactionRef and add transactionId as a sta…
2 parents 3d7b925 + ec845cc commit 0ee00e2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/Omnipay/Common/Message/AbstractRequest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,8 @@ public function setDescription($value)
455455
/**
456456
* Get the transaction ID.
457457
*
458+
* The transaction ID is the identifier generated by the merchant website.
459+
*
458460
* @return string
459461
*/
460462
public function getTransactionId()
@@ -476,6 +478,9 @@ public function setTransactionId($value)
476478
/**
477479
* Get the transaction reference.
478480
*
481+
* The transaction reference is the identifier generated by the remote
482+
* payment gateway.
483+
*
479484
* @return string
480485
*/
481486
public function getTransactionReference()

src/Omnipay/Common/Message/AbstractResponse.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ abstract class AbstractResponse implements ResponseInterface
3737
* @var RequestInterface
3838
*/
3939
protected $request;
40-
40+
4141
/**
4242
* The data contained in the response.
4343
*
@@ -147,6 +147,16 @@ public function getTransactionReference()
147147
return null;
148148
}
149149

150+
/**
151+
* Get the transaction ID as generated by the merchant website.
152+
*
153+
* @return string
154+
*/
155+
public function getTransactionId()
156+
{
157+
return null;
158+
}
159+
150160
/**
151161
* Automatically perform any required redirect
152162
*

0 commit comments

Comments
 (0)