mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for company gateway edge case
This commit is contained in:
parent
2f9e9dc81f
commit
34ba510d80
@ -225,7 +225,7 @@ class CompanyGateway extends BaseModel
|
||||
{
|
||||
$config = $this->getConfig();
|
||||
|
||||
if ($this->gateway->provider == 'Stripe' && strpos($config->publishableKey, 'test')) {
|
||||
if ($this->gateway->provider == 'Stripe' && property_exists($config, 'publishableKey') && strpos($config->publishableKey, 'test')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user