I am calling getPaymentDetails api for which the payment id not exists.
$response = $api->getPaymentDetails([payment id]);
Instead of giving error in response it is giving laravel error.

So, I am not able to handle this error. How can I handle this error and continue to execute next code script.
I am calling getPaymentDetails api for which the payment id not exists.

$response = $api->getPaymentDetails([payment id]);Instead of giving error in response it is giving laravel error.
So, I am not able to handle this error. How can I handle this error and continue to execute next code script.