diff --git a/app/PaymentDrivers/Rotessa/PaymentMethod.php b/app/PaymentDrivers/Rotessa/PaymentMethod.php index 8ccf3346685d..51459d74282b 100755 --- a/app/PaymentDrivers/Rotessa/PaymentMethod.php +++ b/app/PaymentDrivers/Rotessa/PaymentMethod.php @@ -111,7 +111,7 @@ class PaymentMethod implements MethodInterface, LivewireMethodInterface $message = json_decode($e->getMessage(), true); - return redirect()->route('client.payment_methods.index')->withErrors(array_values($message['errors'])); + return redirect()->route('client.payment_methods.index')->withErrors(array_values($message['errors'] ?? [$e->getMessage()])); }