diff --git a/src/GoPaySDK.php b/src/GoPaySDK.php index d4babb7..73f0f68 100644 --- a/src/GoPaySDK.php +++ b/src/GoPaySDK.php @@ -27,7 +27,7 @@ public function __construct() 'goid' => config('gopay.goid'), 'clientId' => config('gopay.clientId'), 'clientSecret' => config('gopay.clientSecret'), - 'isProductionMode' => !getenv('APP_DEBUG'), + 'isProductionMode' => !filter_var(getenv('APP_DEBUG'), FILTER_VALIDATE_BOOLEAN), 'timeout' => config('gopay.timeout') ]; @@ -138,4 +138,4 @@ public function log($closure) $this->logsBefore = []; return $this; } -} \ No newline at end of file +}