diff --git a/app/Http/Controllers/ClientPortal/InvitationController.php b/app/Http/Controllers/ClientPortal/InvitationController.php index 5120f0c0a433..f1993693a90f 100644 --- a/app/Http/Controllers/ClientPortal/InvitationController.php +++ b/app/Http/Controllers/ClientPortal/InvitationController.php @@ -146,6 +146,7 @@ class InvitationController extends Controller } + private function fireEntityViewedEvent($invitation, $entity_string) { switch ($entity_string) { diff --git a/app/PaymentDrivers/PayPal/PayPalBasePaymentDriver.php b/app/PaymentDrivers/PayPal/PayPalBasePaymentDriver.php index 26ad7f06568f..5120932fd9b1 100644 --- a/app/PaymentDrivers/PayPal/PayPalBasePaymentDriver.php +++ b/app/PaymentDrivers/PayPal/PayPalBasePaymentDriver.php @@ -114,8 +114,16 @@ class PayPalBasePaymentDriver extends BaseDriver $this->api_endpoint_url = $this->company_gateway->getConfigField('testMode') ? 'https://api-m.sandbox.paypal.com' : 'https://api-m.paypal.com'; - $secret = $this->company_gateway->getConfigField('secret'); - $client_id = $this->company_gateway->getConfigField('clientId'); + if(\App\Utils\Ninja::isHosted()) { + $secret = config('ninja.paypal.secret'); + $client_id = config('ninja.paypal.client_id'); + + } + else { + + $secret = $this->company_gateway->getConfigField('secret'); + $client_id = $this->company_gateway->getConfigField('clientId'); + } if($this->access_token && $this->token_expiry && $this->token_expiry->isFuture()) { return $this; diff --git a/phpstan.neon b/phpstan.neon index 5c586c4bb520..718f0385499c 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,7 +3,7 @@ includes: - ./vendor/spaze/phpstan-stripe/extension.neon - phpstan-baseline.neon parameters: - level: 3 + level: 4 paths: - app excludePaths: