mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:34:30 -04:00
Coerce types for authorize payment error
This commit is contained in:
parent
16b219dbb9
commit
cba199cd67
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user