diff --git a/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php b/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php index 98906f81d2d2..fe361592dd83 100644 --- a/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php +++ b/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php @@ -257,7 +257,7 @@ class AuthorizeCreditCard $description = "There was an error processing the payment"; if ($response && $response->getErrors() != null) { - $code = $response->getErrors()[0]->getErrorCode(); + $code = (int)$response->getErrors()[0]->getErrorCode(); $description = $response->getErrors()[0]->getErrorText(); }