Skip to content

Commit

Permalink
upd: Handle missing data in FetchInvoiceResponse and AuthorizeRespons…
Browse files Browse the repository at this point in the history
…e [sc-156447] [sc-154786]
  • Loading branch information
valentinDamyanovAmpeco committed Jul 19, 2024
1 parent 70dc95d commit 196b168
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ampeco/omnipay-cardcom",
"description": "Omnipay plugin for Cardcom payment gateway",
"version": "1.2.4",
"version": "1.2.5",
"type": "library",
"license": "MIT",
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Message/AuthorizeResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function isSuccessful() : bool

public function getTransactionReference()
{
return $this->data['TranzactionId'];
return $this->data['TranzactionId'] ?? null;
}

}
2 changes: 1 addition & 1 deletion src/Message/FetchInvoiceResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getDocumentUrl()

public function getMessage()
{
return $this->data['Description'];
return $this->data['Description'] ?? null;
}

}

0 comments on commit 196b168

Please sign in to comment.