1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Braintree ACH exceptions

This commit is contained in:
David Bomba 2023-05-03 09:43:34 +10:00
parent ba7191d6eb
commit 02dc297efb
3 changed files with 12 additions and 5 deletions

View File

@ -1 +1 @@
5.5.113
5.5.114

View File

@ -39,8 +39,15 @@ class ACH implements MethodInterface
public function authorizeView(array $data)
{
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);
}

View File

@ -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', ''),