mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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)
|
public function authorizeView(array $data)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
$data['gateway'] = $this->braintree;
|
$data['gateway'] = $this->braintree;
|
||||||
$data['client_token'] = $this->braintree->gateway->clientToken()->generate();
|
$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);
|
return render('gateways.braintree.ach.authorize', $data);
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,8 @@ return [
|
|||||||
'require_https' => env('REQUIRE_HTTPS', true),
|
'require_https' => env('REQUIRE_HTTPS', true),
|
||||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||||
'app_version' => '5.5.113',
|
'app_version' => '5.5.114',
|
||||||
'app_tag' => '5.5.113',
|
'app_tag' => '5.5.114',
|
||||||
'minimum_client_version' => '5.0.16',
|
'minimum_client_version' => '5.0.16',
|
||||||
'terms_version' => '1.0.1',
|
'terms_version' => '1.0.1',
|
||||||
'api_secret' => env('API_SECRET', ''),
|
'api_secret' => env('API_SECRET', ''),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user