From e065789315aeefc1237aabbf03f73277a62fdb27 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 15 Aug 2021 07:33:56 +1000 Subject: [PATCH] Stripe Payment Driver --- app/PaymentDrivers/StripePaymentDriver.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/StripePaymentDriver.php b/app/PaymentDrivers/StripePaymentDriver.php index 82d45ce1490d..90eaa2f87150 100644 --- a/app/PaymentDrivers/StripePaymentDriver.php +++ b/app/PaymentDrivers/StripePaymentDriver.php @@ -86,7 +86,10 @@ class StripePaymentDriver extends BaseDriver { 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 {