Catch missing props

This commit is contained in:
David Bomba 2023-10-15 17:27:00 +11:00
parent ec69541e29
commit 3ac6f4c2a7

View File

@ -251,7 +251,7 @@ class CreditCard
$response = $this->eway_driver->init()->eway->createTransaction(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transaction); $response = $this->eway_driver->init()->eway->createTransaction(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transaction);
if ($response->TransactionStatus) { if ($response->TransactionStatus ?? false) {
$this->logResponse($response, true); $this->logResponse($response, true);
$payment = $this->storePayment($response); $payment = $this->storePayment($response);
} else { } else {