diff --git a/VERSION.txt b/VERSION.txt index cd6647b66e59..f74778e9a38a 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.5.113 \ No newline at end of file +5.5.114 \ No newline at end of file diff --git a/app/PaymentDrivers/Braintree/ACH.php b/app/PaymentDrivers/Braintree/ACH.php index 518698f02df6..da8e220d3a65 100644 --- a/app/PaymentDrivers/Braintree/ACH.php +++ b/app/PaymentDrivers/Braintree/ACH.php @@ -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); } diff --git a/config/ninja.php b/config/ninja.php index 3ca23f4d4e78..f6cd75b72092 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -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', ''),