Coerce types for authorize payment error

This commit is contained in:
David Bomba 2022-04-06 14:43:14 +10:00
parent 16b219dbb9
commit cba199cd67

View File

@ -257,7 +257,7 @@ class AuthorizeCreditCard
$description = "There was an error processing the payment"; $description = "There was an error processing the payment";
if ($response && $response->getErrors() != null) { if ($response && $response->getErrors() != null) {
$code = $response->getErrors()[0]->getErrorCode(); $code = (int)$response->getErrors()[0]->getErrorCode();
$description = $response->getErrors()[0]->getErrorText(); $description = $response->getErrors()[0]->getErrorText();
} }