mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Stripe Payment Driver
This commit is contained in:
parent
81cf9ace95
commit
e065789315
@ -86,7 +86,10 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
{
|
{
|
||||||
Stripe::setApiKey(config('ninja.ninja_stripe_key'));
|
Stripe::setApiKey(config('ninja.ninja_stripe_key'));
|
||||||
|
|
||||||
$this->stripe_connect_auth = ["stripe_account" => $this->company_gateway->getConfigField('account_id')];
|
if(strlen($this->company_gateway->getConfigField('account_id')) > 1)
|
||||||
|
$this->stripe_connect_auth = ["stripe_account" => $this->company_gateway->getConfigField('account_id')];
|
||||||
|
|
||||||
|
throw new \Exception('Stripe Connect has not been configured');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user