Skip to content

Commit

Permalink
Merge pull request #2 from afosto/bugfix/fix_transaction_id_purchase_…
Browse files Browse the repository at this point in the history
…response

getTransactionReference now uses transactionId from PurchaseResponse
  • Loading branch information
andypieters committed Feb 20, 2016
2 parents ff6de44 + 94593e2 commit 92f8775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Message/FetchTransactionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public function isExpired()
*/
public function getTransactionReference()
{
if (isset($this->data['id'])) {
return $this->data['id'];
if (isset($this->data['transaction']['transactionId'])) {
return $this->data['transaction']['transactionId'];
}
}

Expand Down

0 comments on commit 92f8775

Please sign in to comment.