Skip to content

Commit 16c7d9e

Browse files
author
Andrew Keynes
committed
Return the settlement date as part of the response
1 parent 812385c commit 16c7d9e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Message/SecureXMLResponse.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,15 @@ public function getTransactionReference()
7171
? (string) $this->data->Payment->TxnList->Txn->txnID
7272
: null;
7373
}
74+
75+
/**
76+
* @return string|null Settlement date when the funds will be settled into the
77+
* merchants account.
78+
*/
79+
public function getSettlementDate()
80+
{
81+
return $this->hasTransaction()
82+
? (string) $this->data->Payment->TxnList->Txn->settlementDate
83+
: null;
84+
}
7485
}

0 commit comments

Comments
 (0)