File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
src/Omnipay/Common/Message Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -455,6 +455,8 @@ public function setDescription($value)
455
455
/**
456
456
* Get the transaction ID.
457
457
*
458
+ * The transaction ID is the identifier generated by the originating website.
459
+ *
458
460
* @return string
459
461
*/
460
462
public function getTransactionId ()
@@ -476,6 +478,8 @@ public function setTransactionId($value)
476
478
/**
477
479
* Get the transaction reference.
478
480
*
481
+ * The transaction reference is the identified generated by the payment gateway.
482
+ *
479
483
* @return string
480
484
*/
481
485
public function getTransactionReference ()
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ abstract class AbstractResponse implements ResponseInterface
37
37
* @var RequestInterface
38
38
*/
39
39
protected $ request ;
40
-
40
+
41
41
/**
42
42
* The data contained in the response.
43
43
*
@@ -144,7 +144,17 @@ public function getCode()
144
144
*/
145
145
public function getTransactionReference ()
146
146
{
147
- return null ;
147
+ return $ this ->getParameter ('transactionReference ' );
148
+ }
149
+
150
+ /**
151
+ * Get the transaction ID as generated by originating website.
152
+ *
153
+ * @return string
154
+ */
155
+ public function getTransactionId ()
156
+ {
157
+ $ this ->getParameter ('transactionId ' );
148
158
}
149
159
150
160
/**
You can’t perform that action at this time.
0 commit comments