Skip to content

Commit f5a5526

Browse files
authored
Merge pull request #1 from neilcrookespm/patch-1
Adding missing getTransactionReference() method
2 parents 38d74c5 + af779d4 commit f5a5526

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Message/ApiPurchaseResponse.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public function getOrderId()
4747
return ((isset($this->data->order) && isset($this->data->order->order_id))?$this->data->order->order_id:null);
4848
}
4949

50+
public function getTransactionReference()
51+
{
52+
return $this->getOrderId();
53+
}
54+
5055
public function getTotalAuthorizedAmount()
5156
{
5257
return ((isset($this->data->order) && isset($this->data->order->total_authorized_amount))?$this->data->order->total_authorized_amount:null);

0 commit comments

Comments
 (0)