diff --git a/src/Client.php b/src/Client.php index f7aef80..48e3f43 100644 --- a/src/Client.php +++ b/src/Client.php @@ -88,8 +88,8 @@ public static function configure($options) { self::$client_secret = $options['client_secret'] ?? self::$client_secret ?? getenv('QUICKBOOKS_CLIENT_SECRET'); self::$webhook_token = $options['webhook_token'] ?? self::$webhook_token ?? getenv('QUICKBOOKS_WEBHOOK_TOKEN'); self::$redirect_uri = $options['redirect_uri'] ?? self::$redirect_uri ?? getenv('QUICKBOOKS_REDIRECT_URI'); - self::$sandbox = isset($options['sandbox']) && $options['sandbox'] === true; - self::$oauth = $options['oauth'] ?? $options['oauth'] ?? ''; + self::$sandbox = isset($options['sandbox']) && $options['sandbox'] === true || self::$sandbox; + self::$oauth = $options['oauth'] ?? self::$oauth ?? ''; self::$realm_id = $options['realm_id'] ?? self::$realm_id ?? ''; }