Skip to content

Commit

Permalink
Advanced settings
Browse files Browse the repository at this point in the history
  • Loading branch information
inpsyde-maticluznar committed Oct 3, 2024
1 parent 8f3fb30 commit b26c30e
Show file tree
Hide file tree
Showing 53 changed files with 1,053 additions and 106 deletions.
11 changes: 0 additions & 11 deletions resources/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
const {current_section = false} = mollieSettingsData
jQuery(function($) {

$('#mollie-payments-for-woocommerce_test_mode_enabled').change(function() {
if ($(this).is(':checked'))
{
$('#mollie-payments-for-woocommerce_test_api_key').attr('required', true).closest('tr').show();
}
else
{
$('#mollie-payments-for-woocommerce_test_api_key').removeAttr('required').closest('tr').hide();
}
}).change();

if(_.isEmpty(mollieSettingsData)){
return
}
Expand Down
2 changes: 1 addition & 1 deletion src/Assets/AssetsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public function enqueueAdvancedSettingsJS($ar)
if (
$current_screen->id !== 'woocommerce_page_wc-settings'
|| $current_tab !== 'mollie_settings'
|| $current_section !== 'advanced'
|| $current_section !== 'mollie_advanced'
) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Buttons/ApplePayButton/ApplePayDataObjectHttp.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ protected function addressHasRequiredFieldsValues(
sprintf('ApplePay Data Error: Missing value for %s', $requiredField)
);
$this->errors[]
= [
= [
'errorCode' => $errorCode,
'contactField' => $errorValue,
];
Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Alma.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ protected function getConfig(): array
'billingAddress',
'shippingAddress',
],
'docs' => 'https://www.mollie.com/gb/payments/alma',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Applepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ protected function getConfig(): array
'confirmationDelayed' => false,
'SEPA' => false,
'Subscription' => true,
'docs' => 'https://www.mollie.com/gb/payments/apple-pay',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Bancomatpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function getConfig(): array
],
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'docs' => 'https://www.mollie.com/gb/payments/bancomat-pay',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Bancontact.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => true,
'docs' => 'https://www.mollie.com/gb/payments/bancontact',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Banktransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ protected function getConfig(): array
'confirmationDelayed' => true,
'SEPA' => false,
'customRedirect' => true,
'docs' => 'https://www.mollie.com/gb/payments/bank-transfer',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Belfius.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => true,
'docs' => 'https://www.mollie.com/gb/payments/belfius',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Billie.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected function getConfig(): array
'mollie-payments-for-woocommerce'
),
'companyPlaceholder' => __('Please enter your company name here.', 'mollie-payments-for-woocommerce'),
'docs' => 'https://www.mollie.com/gb/payments/billie',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Blik.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
'docs' => 'https://www.mollie.com/gb/payments/blik',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Creditcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ protected function getConfig(): array
'confirmationDelayed' => false,
'SEPA' => false,
'Subscription' => true,
'docs' => 'https://www.mollie.com/gb/payments/credit-card',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Directdebit.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => false,
'docs' => 'https://www.mollie.com/gb/payments/direct-debit',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Eps.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => true,
'docs' => 'https://www.mollie.com/gb/payments/eps',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Giftcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
'docs' => 'https://www.mollie.com/gb/payments/gift-cards',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Giropay.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => true,
'docs' => 'https://help.mollie.com/hc/en-gb/articles/19745480480786-Giropay-Depreciation-FAQ',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Ideal.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => true,
'docs' => 'https://www.mollie.com/gb/payments/ideal-2-0',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/In3.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function getConfig(): array
),
'phonePlaceholder' => __('Please enter your phone here. +316xxxxxxxx', 'mollie-payments-for-woocommerce'),
'birthdatePlaceholder' => __('Please enter your birthdate here.', 'mollie-payments-for-woocommerce'),
'docs' => 'https://www.mollie.com/gb/payments/ideal-in3',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Kbc.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => true,
'docs' => 'https://www.mollie.com/gb/payments/kbc-cbc',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Klarna.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ protected function getConfig(): array
'confirmationDelayed' => false,
'SEPA' => false,
'orderMandatory' => true,
'docs' => 'https://www.mollie.com/gb/payments/klarna',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Klarnapaylater.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ protected function getConfig(): array
'confirmationDelayed' => false,
'SEPA' => false,
'orderMandatory' => true,
'docs' => 'https://www.mollie.com/gb/payments/klarna',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Klarnapaynow.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ protected function getConfig(): array
'confirmationDelayed' => false,
'SEPA' => false,
'orderMandatory' => true,
'docs' => 'https://www.mollie.com/gb/payments/klarna',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Klarnasliceit.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ protected function getConfig(): array
'confirmationDelayed' => false,
'SEPA' => false,
'orderMandatory' => true,
'docs' => 'https://www.mollie.com/gb/payments/klarna',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Mybank.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
'docs' => '',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Payconiq.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
'docs' => '',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
'docs' => 'https://www.mollie.com/gb/payments/paypal',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Paysafecard.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
'docs' => 'https://www.mollie.com/gb/payments/paysafecard',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Przelewy24.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
'docs' => 'https://www.mollie.com/gb/payments/przelewy24',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Riverty.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected function getConfig(): array
'orderMandatory' => true,
'phonePlaceholder' => __('Please enter your phone here. +316xxxxxxxx', 'mollie-payments-for-woocommerce'),
'birthdatePlaceholder' => __('Please enter your birthdate here.', 'mollie-payments-for-woocommerce'),
'docs' => 'https://www.mollie.com/gb/payments/riverty',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Satispay.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
'docs' => 'https://www.mollie.com/gb/payments/satispay',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Sofort.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => true,
'docs' => 'https://help.mollie.com/hc/en-us/articles/20904206772626-SOFORT-Deprecation-30-September-2024',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Trustly.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => false,
'docs' => 'https://www.mollie.com/gb/payments/trustly',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Twint.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function getConfig(): array
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
'docs' => 'https://www.mollie.com/gb/payments/twint',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/PaymentMethods/Voucher.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected function getConfig(): array
'confirmationDelayed' => false,
'SEPA' => false,
'orderMandatory' => true,
'docs' => 'https://www.mollie.com/gb/payments/meal-eco-gift-vouchers',
];
}

Expand Down
Loading

0 comments on commit b26c30e

Please sign in to comment.