mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for paypal auth credentials
This commit is contained in:
parent
b45f9f711a
commit
1e0f250052
@ -146,6 +146,7 @@ class InvitationController extends Controller
|
||||
|
||||
}
|
||||
|
||||
|
||||
private function fireEntityViewedEvent($invitation, $entity_string)
|
||||
{
|
||||
switch ($entity_string) {
|
||||
|
@ -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;
|
||||
|
@ -3,7 +3,7 @@ includes:
|
||||
- ./vendor/spaze/phpstan-stripe/extension.neon
|
||||
- phpstan-baseline.neon
|
||||
parameters:
|
||||
level: 3
|
||||
level: 4
|
||||
paths:
|
||||
- app
|
||||
excludePaths:
|
||||
|
Loading…
x
Reference in New Issue
Block a user