Fixes for company gateway edge case

This commit is contained in:
David Bomba 2021-05-04 17:00:05 +10:00
parent 2f9e9dc81f
commit 34ba510d80

View File

@ -225,7 +225,7 @@ class CompanyGateway extends BaseModel
{ {
$config = $this->getConfig(); $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; return true;
} }