Improve Braintree ach error responses
This commit is contained in:
parent
8100e75177
commit
bd6b878f9f
|
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue