Skip to content

Commit 151dd39

Browse files
author
Can Sözeri
committed
fix transactionReference
1 parent b13104d commit 151dd39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Messages/AbstractResponse.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ public function isSuccessful(): bool
9696

9797
public function getTransactionReference(): ?string
9898
{
99-
return (string)$this->data->Transaction->RetrefNum;
99+
if (is_object($this->data)) {
100+
return (string)$this->data->Transaction->RetrefNum;
101+
}
102+
103+
return parent::getTransactionReference();
100104
}
101105
}

0 commit comments

Comments
 (0)