@@ -683,7 +683,7 @@ class Producer extends ActiveRecordCommon | |||
public function savePrivateKeyStripe($filename, $value) | |||
{ | |||
if ($this->online_payment && strlen($value) > 0) { | |||
if (strlen($value) > 0) { | |||
$handle = fopen($filename, "w"); | |||
fwrite($handle, $value); | |||
fclose($handle); |