mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:44:29 -04:00
Check Braintree credentials when adding gateway
This commit is contained in:
parent
109d684437
commit
21dc46b8da
@ -212,4 +212,15 @@ class BraintreePaymentDriver extends BasePaymentDriver
|
||||
->send()
|
||||
->getToken();
|
||||
}
|
||||
|
||||
public function isValid()
|
||||
{
|
||||
try {
|
||||
$this->createTransactionToken();
|
||||
return true;
|
||||
} catch (Exception $exception) {
|
||||
return get_class($exception);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user