Exceptions
Every exception in our library is extended from:
\SimPay\Laravel\Exceptions\SimPayExceptionWhen response from our API is 401 or 403,
\SimPay\Laravel\Exceptions\AuthorizationExceptionis thrown;When response from our API is 404,
\SimPay\Laravel\Exceptions\ResourceNotFoundExceptionis thrown (this will be also thrown, when SMS code does not exists);When response from our API is 422,
\SimPay\Laravel\Exceptions\ValidationFailedExceptionis thrown (you can get errors by using$exception->errors().
If SimPayException is thrown, you may see errorCode, which may be useful for specific errors returned (eg. BLIK Alias already registered, invalid BLIK T6 code).
errorCode may be a string or null
Last updated