Improve Braintree ach error responses

This commit is contained in:
David Bomba 2025-08-11 08:58:06 +10:00
parent 8100e75177
commit bd6b878f9f
1 changed files with 5 additions and 0 deletions

View File

@ -113,6 +113,11 @@ class ACH implements MethodInterface, LivewireMethodInterface
}
}
if ($result instanceof \Braintree\Result\Error && $result->message) {
session()->flash('ach_error', $result->message);
return back()->withInput();
}
return back()->withMessage(ctrans('texts.unable_to_verify_payment_method'));
}