diff --git a/src/Message/PurchaseResponse.php b/src/Message/PurchaseResponse.php index 6a211a5..bbf5629 100644 --- a/src/Message/PurchaseResponse.php +++ b/src/Message/PurchaseResponse.php @@ -7,7 +7,6 @@ class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface { - /** * Is the response successful? * @@ -53,4 +52,12 @@ public function getState() { return $this->data['state']; } + + public function getTransactionReference() + { + if (isset($this->data['id'])) { + return $this->data['id']; + } + return null; + } } \ No newline at end of file