Skip to content

Commit

Permalink
Add support for Transactions Reference Id from Gopay
Browse files Browse the repository at this point in the history
  • Loading branch information
Honza Machala committed Sep 23, 2016
1 parent d14ed1e commit 0d39bcc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Message/PurchaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface
{

/**
* Is the response successful?
*
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 0d39bcc

Please sign in to comment.