mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Braintree ACH exceptions
This commit is contained in:
parent
ba7191d6eb
commit
02dc297efb
@ -1 +1 @@
|
||||
5.5.113
|
||||
5.5.114
|
@ -39,8 +39,15 @@ class ACH implements MethodInterface
|
||||
|
||||
public function authorizeView(array $data)
|
||||
{
|
||||
$data['gateway'] = $this->braintree;
|
||||
$data['client_token'] = $this->braintree->gateway->clientToken()->generate();
|
||||
try {
|
||||
$data['gateway'] = $this->braintree;
|
||||
$data['client_token'] = $this->braintree->gateway->clientToken()->generate();
|
||||
}
|
||||
catch(\Exception $e){
|
||||
|
||||
throw new PaymentFailed("Unable to generate client token, check your Braintree credentials. Error: " . $e->getMessage(), 500);
|
||||
|
||||
}
|
||||
|
||||
return render('gateways.braintree.ach.authorize', $data);
|
||||
}
|
||||
|
@ -15,8 +15,8 @@ return [
|
||||
'require_https' => env('REQUIRE_HTTPS', true),
|
||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||
'app_version' => '5.5.113',
|
||||
'app_tag' => '5.5.113',
|
||||
'app_version' => '5.5.114',
|
||||
'app_tag' => '5.5.114',
|
||||
'minimum_client_version' => '5.0.16',
|
||||
'terms_version' => '1.0.1',
|
||||
'api_secret' => env('API_SECRET', ''),
|
||||
|
Loading…
Reference in New Issue
Block a user