Skip to content

Commit 152959c

Browse files
committed
Issue thephpleague#19 Add getTransactionId() to SIMcompleteAuthorize.php for access to custom field.
1 parent 272b7b0 commit 152959c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Message/AbstractRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
abstract class AbstractRequest extends CommonAbstractRequest
1212
{
1313
/**
14-
* Recommended custom field name to send the transaction ID to the notify handler.
14+
* Custom field name to send the transaction ID to the notify handler.
1515
*/
1616
const TRANSACTION_ID_PARAM = 'omnipay_transaction_id';
1717

src/Message/SIMCompleteAuthorizeRequest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
*/
1010
class SIMCompleteAuthorizeRequest extends AbstractRequest
1111
{
12+
/**
13+
* Get the transaction ID passed in through the custom field.
14+
* This is used to look up the transaction in storage.
15+
*/
16+
public function getTransactionId()
17+
{
18+
return $this->httpRequest->request->get(static::TRANSACTION_ID_PARAM);
19+
}
20+
1221
public function getData()
1322
{
1423
// The hash sent in the callback from the Authorize.Net gateway.

0 commit comments

Comments
 (0)