mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -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";
|
||||
|
||||
if ($response && $response->getErrors() != null) {
|
||||
$code = $response->getErrors()[0]->getErrorCode();
|
||||
$code = (int)$response->getErrors()[0]->getErrorCode();
|
||||
$description = $response->getErrors()[0]->getErrorText();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user