Skip to content

Commit

Permalink
Merge pull request #987 from mollie/fix/PIWOO-616-logs-missing
Browse files Browse the repository at this point in the history
Fix value if missing option
  • Loading branch information
mmaymo authored Jan 21, 2025
2 parents 2e68334 + ce3f2e5 commit b078ed8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/PaymentMethods/Directdebit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ protected function getConfig(): array
{
return [
'id' => 'directdebit',
'defaultTitle' => 'SEPA Direct Debit', 'mollie-payments-for-woocommerce',
'defaultTitle' => 'SEPA Direct Debit',
'settingsDescription' => "SEPA Direct Debit is used for recurring payments with WooCommerce Subscriptions, and will not be shown in the WooCommerce checkout for regular payments! You also need to enable iDEAL and/or other 'first' payment methods if you want to use SEPA Direct Debit.",
'defaultDescription' => '',
'paymentFields' => false,
Expand Down
2 changes: 1 addition & 1 deletion src/PaymentMethods/Giftcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function getConfig(): array
{
return [
'id' => 'giftcard',
'defaultTitle' => 'Gift cards', 'mollie-payments-for-woocommerce',
'defaultTitle' => 'Gift cards',
'settingsDescription' => '',
'defaultDescription' => 'Select your gift card',
'paymentFields' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/PaymentMethods/Klarnasliceit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ protected function getConfig(): array
{
return [
'id' => 'klarnasliceit',
'defaultTitle' => 'Klarna Slice it', 'mollie-payments-for-woocommerce',
'defaultTitle' => 'Klarna Slice it',
'settingsDescription' => 'To accept payments via Klarna, all default WooCommerce checkout fields should be enabled and required.',
'defaultDescription' => '',
'paymentFields' => false,
Expand Down
2 changes: 1 addition & 1 deletion src/Settings/SettingsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function services(): array
return $settingsHelper->isTestModeEnabled();
},
'settings.IsDebugEnabled' => static function (): bool {
$debugEnabled = get_option('mollie-payments-for-woocommerce_debug', true);
$debugEnabled = get_option('mollie-payments-for-woocommerce_debug', 'yes');
return $debugEnabled === 'yes';
},
'settings.advanced_default_options' => static function (ContainerInterface $container) {
Expand Down

0 comments on commit b078ed8

Please sign in to comment.