Skip to content

Commit 5f0d7ef

Browse files
author
Alima Grine
committed
Merge branch 'hotfix/1.14.3'
2 parents a4e8122 + 1e2506c commit 5f0d7ef

20 files changed

+62
-48
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
= 1.14.3, 2025-01-13:
2+
- Bug fix: Fix payment method availability for manual payment of failed subscription renewals.
3+
- Bug fix: Fix errors when jQuery Migrate is disabled.
4+
- Update all domains payment means.
5+
- Update all domains supported currencies.
6+
17
= 1.14.2, 2024-10-16:
28
- Bug fix: Fix redirection to payment gateway.
39
- [embedded] Bug fix: Fix updating form token on shipping method change.
@@ -8,7 +14,7 @@
814

915
= 1.14.0, 2024-09-10:
1016
- [sepa] Adding SEPA submodule.
11-
- Added compatibilty with WooCommerce 9.x versions.
17+
- Added compatibility with WooCommerce 9.x versions.
1218

1319
= 1.13.3, 2024-07-01:
1420
- [technical] Enabled some features by plugin variant.

COPYING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2013-2024 Lyra Network and contributors.
1+
Copyright © 2013-2025 Lyra Network and contributors.
22

33
PayZen plugin for WooCommerce is free software; you can redistribute it and/or
44
modify it under the terms of the GNU General Public License

readme.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
Contributors: Lyra Network, Alsacréations
33
Tags: payment, PayZen, gateway, checkout, credit card, bank card, e-commerce
44
Requires at least: 3.5
5-
Tested up to: 6.6
5+
Tested up to: 6.7
66
WC requires at least: 2.0
7-
WC tested up to: 9.3
8-
Stable tag: 1.14.2
7+
WC tested up to: 9.5
8+
Stable tag: 1.14.3
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -42,6 +42,12 @@ The payment plugin has the following features:
4242

4343
== Changelog ==
4444

45+
= 1.14.3, 2025-01-13:
46+
- Bug fix: Fix payment method availability for manual payment of failed subscription renewals.
47+
- Bug fix: Fix errors when jQuery Migrate is disabled.
48+
- Update all domains payment means.
49+
- Update all domains supported currencies.
50+
4551
= 1.14.2, 2024-10-16:
4652
- Bug fix: Fix redirection to payment gateway.
4753
- [embedded] Bug fix: Fix updating form token on shipping method change.
@@ -52,7 +58,7 @@ The payment plugin has the following features:
5258

5359
= 1.14.0, 2024-09-10:
5460
- [sepa] Adding SEPA submodule.
55-
- Added compatibilty with WooCommerce 9.x versions.
61+
- Added compatibility with WooCommerce 9.x versions.
5662

5763
= 1.13.3, 2024-07-01:
5864
- [technical] Enabled some features by plugin variant.

woo-payzen-payment/assets/js/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ var payzen_get_selected_option = function(elementNames) {
1616
let element = 'input[name="'+ name + '"]';
1717
let option = jQuery(element);
1818

19-
if (option.size() == 0) {
19+
if (option.length == 0) {
2020
continue;
21-
} else if (option.size() > 1) {
21+
} else if (option.length > 1) {
2222
option = jQuery(element + ':checked');
2323
}
2424

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wc-blocks-registry', 'wc-settings', 'wp-html-entities'), 'version' => 'dfbf5cdc0aaf3be2503c7cd0f93e9292');
1+
<?php return array('dependencies' => array('wc-blocks-registry', 'wc-settings', 'wp-html-entities'), 'version' => 'db4075731bf4f8a7be8f557667ffc5bb');

woo-payzen-payment/build/payzenstd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wc-blocks-registry', 'wc-settings', 'wp-html-entities'), 'version' => 'be3369091050b73438e9b77631189f17');
1+
<?php return array('dependencies' => array('wc-blocks-registry', 'wc-settings', 'wp-html-entities'), 'version' => '6533fe10afb9a9cac294ef1aae0c9289');

woo-payzen-payment/build/payzenwcssubscription.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

woo-payzen-payment/class-wc-gateway-payzen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class WC_Gateway_Payzen extends WC_Payment_Gateway
3737

3838
const CMS_IDENTIFIER = 'WooCommerce_2.x-9.x';
3939
const SUPPORT_EMAIL = 'support@payzen.eu';
40-
const PLUGIN_VERSION = '1.14.2';
40+
const PLUGIN_VERSION = '1.14.3';
4141
const GATEWAY_VERSION = 'V2';
4242

4343
const LOG_FOLDER = 'wp-content/uploads/wc-logs/';

woo-payzen-payment/class-wc-gateway-payzenregroupedother.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function payzenAddOption(fieldName, record, key) {
295295
optionLine += '<td style="padding: 0px;">';
296296
optionLine += '<select style="width: ' + width + 'px;" name="' + inputName + '" id="' + inputName + '">';
297297
optionLine += '<?php foreach ($cards as $key => $value) {
298-
echo '<option value="' . $key . '">' . $value . '</option>';
298+
echo '<option value="' . $key . '">' . addslashes($value) . '</option>';
299299
} ?>';
300300

301301
optionLine = optionLine.replace('<option value="'+value+'"', '<option value="'+value+'" selected');

woo-payzen-payment/class-wc-gateway-payzenstd.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,10 @@ protected function is_available_for_subscriptions()
903903
WC_Gateway_PayzenSubscription::SUBSCRIPTIONS_HANDLER;
904904
$subscriptions_handler = Payzen_Subscriptions_Loader::getInstance($handler);
905905

906+
if (function_exists('wcs_cart_contains_renewal') && wcs_cart_contains_renewal()) {
907+
return false;
908+
}
909+
906910
if ($subscriptions_handler && $subscriptions_handler->cart_contains_subscription($woocommerce->cart)) {
907911
return false;
908912
}

woo-payzen-payment/class-wc-gateway-payzenwcssubscription.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ protected function is_available_for_subscriptions()
207207
return false;
208208
}
209209

210+
if (wcs_cart_contains_renewal()) {
211+
return true;
212+
}
213+
210214
if (! $this->subscriptions_handler->cart_contains_subscription($woocommerce->cart)) {
211215
return false;
212216
}

woo-payzen-payment/client/blocks/payzenstd.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,8 @@ registerPaymentMethod({
8080
});
8181

8282
var displayFields = function () {
83-
if (jQuery(submitButton).length == 0) {
84-
return;
85-
}
86-
87-
if (! jQuery("#radio-control-wc-payment-method-options-payzenstd").is(":checked")) {
83+
var checkedMethod = jQuery("input[type=radio][name=radio-control-wc-payment-method-options]:checked").val();
84+
if (checkedMethod !== PAYMENT_METHOD_NAME) {
8885
return;
8986
}
9087

@@ -312,20 +309,17 @@ var refreshTempToken = function () {
312309
}
313310
};
314311

315-
var first = true;
316312
var initFields = function() {
317-
if (! first) {
313+
if (jQuery(submitButton).length > 0) {
318314
displayFields();
319-
320315
jQuery(submitButton).on('click', onButtonClick);
316+
321317
jQuery('input[type=radio][name=radio-control-wc-payment-method-options]').change(function(e) {
322318
if (this.value === PAYMENT_METHOD_NAME) {
323319
displayFields();
324320
}
325321
});
326322
}
327-
328-
first = false;
329323
};
330324

331325
jQuery(document).on('ready', initFields);

woo-payzen-payment/client/blocks/payzenwcssubscription.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,8 @@ registerPaymentMethod({
8080
});
8181

8282
var displayFields = function () {
83-
if (jQuery(submitButton).length == 0) {
84-
return;
85-
}
86-
87-
if (! jQuery("#radio-control-wc-payment-method-options-payzenwcssubscription").is(":checked")) {
83+
var checkedMethod = jQuery("input[type=radio][name=radio-control-wc-payment-method-options]:checked").val();
84+
if (checkedMethod !== PAYMENT_METHOD_NAME) {
8885
return;
8986
}
9087

@@ -268,20 +265,17 @@ var refreshTempToken = function () {
268265
}
269266
};
270267

271-
var first = true;
272268
var initFields = function() {
273-
if (! first) {
269+
if (jQuery(submitButton).length > 0) {
274270
displayFields();
275-
276271
jQuery(submitButton).on('click', onButtonClick);
272+
277273
jQuery('input[type=radio][name=radio-control-wc-payment-method-options]').change(function(e) {
278274
if (this.value === PAYMENT_METHOD_NAME) {
279275
displayFields();
280276
}
281277
});
282278
}
283-
284-
first = false;
285279
};
286280

287281
jQuery(document).on('ready', initFields);

woo-payzen-payment/includes/Lyranetwork/Payzen/Sdk/Form/Api.php

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,19 @@ public static function getSupportedCardTypes()
221221
'BOULANGER_SB' => 'Carte b+ (sandbox)', 'BRICE_CDX' => 'Carte Cadeau Brice', 'BRICE_CDX_SB' => 'Carte Cadeau Brice (sandbox)',
222222
'BUT' => 'But', 'CABAL' => 'Cabal', 'CARNET' => 'Carnet', 'CASINO' => 'Banque Casino', 'CA_DO_CARTE' => 'CA DO Carte',
223223
'CDGP' => 'Carte Privilège', 'CDISCOUNT' => 'CDiscount', 'CHQ_DEJ' => 'Chèque Déjeuner', 'COF3XCB' => 'Cofinoga 3 fois CB',
224-
'COF3XCB_SB' => 'Cofinoga 3 fois CB Sandbox', 'COFINOGA' => 'Cofinoga', 'COM_BARRY_CDX' => 'Carte Cadeau Comtesse du Barry',
224+
'COF3XCB_SB' => 'Cofinoga 3 fois CB Sandbox', 'COFIDIS_3X_BE' => 'Cofidis en 3 fois', 'COFIDIS_3X_FR' => 'Cofidis en 3 fois',
225+
'COFIDIS_4X_ES' => 'Cofidis en 4 vencimientos', 'COFIDIS_4X_FR' => 'Cofidis en 4 fois', 'COFIDIS_DFPAY_FR' => 'Cofidis Pay Later',
226+
'COFIDIS_LOAN_BE' => 'Cofidis en 6-12-18 fois', 'COFIDIS_LOAN_CB' => 'Cofidis en 5-12 fois', 'COFIDIS_LOAN_BE' => 'Cofidis en 6-12-18 fois',
227+
'COFIDIS_LOAN_ES' => 'Cofidis en 6-12-24 vencimientos', 'COFIDIS_LOAN_FR' => 'Amortissable', 'COFIDIS_LOAN_IT' => 'Cofidis Pagodil',
228+
'COFIDIS_PAY_FR' => 'Cofidis Pay', 'COFINOGA' => 'Cofinoga', 'COM_BARRY_CDX' => 'Carte Cadeau Comtesse du Barry',
225229
'COM_BARRY_CDX_SB' => 'Carte Cadeau Comtesse du Barry (sandbox)', 'CONECS' => 'Conecs', 'CONFORAMA' => 'Conforama',
226230
'CORA' => 'Cora', 'CORA_BLANCHE' => 'Cora blanche', 'CORA_PREM' => 'Cora Visa Premier', 'CORA_VISA' => 'Cora Visa',
227231
'CVCO' => 'Chèque-Vacances Connect', 'DINERS' => 'Diners', 'DISCOVER' => 'Discover', 'ECCARD' => 'EC Card',
228-
'EDENRED' => 'Ticket Restaurant', 'EDENRED_EC' => 'Ticket EcoCheque', 'EDENRED_SC' => 'Ticket Sport & Culture',
229-
'EDENRED_TC' => 'Ticket Compliments', 'EDENRED_TR' => 'Ticket Restaurant', 'ELO' => 'Elo', 'ELV' => 'ELV',
230-
'FRANFINANCE_3X' => 'Paiement en 3 fois', 'FRANFINANCE_4X' => 'Paiement en 4 fois', 'FULLCB3X' => 'Paiement en 3 fois CB',
232+
'EDENRED' => 'Ticket Restaurant', 'EDENRED_CC' => 'Ticket Cheque Consommation', 'EDENRED_EC' => 'Ticket EcoCheque',
233+
'EDENRED_SC' => 'Ticket Sport & Culture', 'EDENRED_TC' => 'Ticket Compliments', 'EDENRED_TR' => 'Ticket Restaurant', 'ELO' => 'Elo',
234+
'ELV' => 'ELV', 'FRANFINANCE_3X' => 'Paiement en 3 fois', 'FRANFINANCE_4X' => 'Paiement en 4 fois', 'FULLCB3X' => 'Paiement en 3 fois CB',
231235
'FULLCB4X' => 'Paiement en 4 fois CB', 'GEMO_CDX' => 'Carte Cadeau Gémo', 'GEMO_CDX_SB' => 'Carte Cadeau Gémo (sandbox)',
232-
'GIROPAY' => 'Giropay', 'HIPER' => 'Hiper', 'HIPERCARD' => 'Hipercard', 'IDEAL' => 'iDEAL',
236+
'GIROPAY' => 'Giropay', 'GOOGLEPAY' => 'Google Pay', 'HIPER' => 'Hiper', 'HIPERCARD' => 'Hipercard', 'IDEAL' => 'iDEAL',
233237
'ILLICADO' => 'Carte Illicado', 'ILLICADO_SB' => 'Carte Illicado (sandbox)', 'IP_WIRE' => 'Virement SEPA',
234238
'IP_WIRE_INST' => 'Virement SEPA Instantané', 'JCB' => 'JCB', 'JOUECLUB_CDX' => 'Carte Cadeau Joué Club',
235239
'JOUECLUB_CDX_SB' => 'Carte Cadeau Joué Club (sandbox)', 'JULES_CDX' => 'Carte Cadeau Jules',
@@ -240,12 +244,14 @@ public static function getSupportedCardTypes()
240244
'NARANJA' => 'Naranja', 'NORAUTO' => 'Carte Norauto option Financement', 'NORAUTO_SB' => 'Carte Norauto option Financement (sandbox)',
241245
'ONEY' => 'Paiement en 3 ou 4 fois par CB', 'ONEY_10X_12X' => 'Paiement en 10 ou 12 fois Oney',
242246
'ONEY_3X_4X' => 'Paiement en 3 ou 4 fois Oney', 'ONEY_ENSEIGNE' => 'Cartes enseignes Oney', 'ONEY_PAYLATER' => 'Pay Later Oney',
243-
'ONEY_SANDBOX' => 'Paiement en 3 ou 4 fois par CB (sandbox)', 'PAYBOX' => 'Paybox', 'PAYDIREKT' => 'Paydirekt', 'PAYPAL' => 'PayPal',
247+
'ONEY_SANDBOX' => 'Paiement en 3 ou 4 fois par CB (sandbox)', 'PASS_BEAU_CDX' => 'Carte Cadeau Passion Beauté',
248+
'PASS_BEAU_CDX_SB' => 'Carte Cadeau Passion Beauté (sandbox)', 'PAYBOX' => 'Paybox', 'PAYDIREKT' => 'Paydirekt', 'PAYPAL' => 'PayPal',
249+
'PAYPAL_BNPL' => 'PayPal Pay Later', 'PAYPAL_BNPL_SB' => 'PayPal Pay Later Sandbox',
244250
'PAYPAL_SB' => 'PayPal Sandbox', 'PICWIC' => 'Carte Picwic', 'PICWIC_SB' => 'Carte Picwic (sandbox)',
245251
'POSTFINANCE' => 'PostFinance Card', 'POSTFINANCE_EFIN' => 'PostFinance E-Finance', 'PRESTO' => 'Presto',
246252
'PRZELEWY24' => 'Przelewy24', 'S-MONEY' => 'S-money', 'SCT' => 'Virement SEPA', 'SDD' => 'Prélèvement SEPA',
247253
'SODEXO' => 'Pass Restaurant', 'SOFICARTE' => 'Soficarte', 'SOFORT_BANKING' => 'Sofort', 'SOROCRED' => 'Sorocred',
248-
'SYGMA' => 'Sygma', 'TRUFFAUT_CDX' => 'Carte Cadeau Truffaut', 'UNION_PAY' => 'UnionPay', 'VILLAVERDE' => 'Carte Cadeau VillaVerde',
254+
'SYGMA' => 'Sygma', 'TRUFFAUT_CDX' => 'Carte Cadeau Truffaut', 'VILLAVERDE' => 'Carte Cadeau VillaVerde',
249255
'VILLAVERDE_SB' => 'Carte Cadeau VillaVerde (sandbox)', 'WECHAT' => 'WeChat Pay'
250256
);
251257
}

woo-payzen-payment/languages/woo-payzen-payment-de_DE.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
msgid ""
22
msgstr ""
3-
"Project-Id-Version: PayZen for WooCommerce 1.14.2\n"
3+
"Project-Id-Version: PayZen for WooCommerce 1.14.3\n"
44
"Report-Msgid-Bugs-To: \n"
55
"POT-Creation-Date: 2024-08-09 14:29+0200\n"
66
"PO-Revision-Date: 2024-08-29 14:58+0200\n"

woo-payzen-payment/languages/woo-payzen-payment-es_ES.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
msgid ""
22
msgstr ""
3-
"Project-Id-Version: PayZen for WooCommerce 1.14.2\n"
3+
"Project-Id-Version: PayZen for WooCommerce 1.14.3\n"
44
"Report-Msgid-Bugs-To: \n"
55
"POT-Creation-Date: 2024-08-09 14:20+0200\n"
66
"PO-Revision-Date: 2024-08-29 14:58+0200\n"

woo-payzen-payment/languages/woo-payzen-payment-fr_FR.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
msgid ""
22
msgstr ""
3-
"Project-Id-Version: PayZen for WooCommerce 1.14.2\n"
3+
"Project-Id-Version: PayZen for WooCommerce 1.14.3\n"
44
"Report-Msgid-Bugs-To: \n"
55
"POT-Creation-Date: 2024-08-09 14:13+0200\n"
66
"PO-Revision-Date: 2024-08-29 14:57+0200\n"

woo-payzen-payment/languages/woo-payzen-payment-pt_BR.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
msgid ""
22
msgstr ""
3-
"Project-Id-Version: PayZen para WooCommerce 1.14.2\n"
3+
"Project-Id-Version: PayZen para WooCommerce 1.14.3\n"
44
"Report-Msgid-Bugs-To: \n"
55
"POT-Creation-Date: 2024-08-09 14:25+0200\n"
66
"PO-Revision-Date: 2024-08-29 14:58+0200\n"

woo-payzen-payment/woo-payzen-payment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* Description: This plugin links your WordPress WooCommerce shop to the payment gateway.
1515
* Author: Lyra Network
1616
* Contributors: Alsacréations (Geoffrey Crofte http://alsacreations.fr/a-propos#geoffrey)
17-
* Version: 1.14.2
17+
* Version: 1.14.3
1818
* Author URI: https://www.lyra.com/
1919
* License: GPLv2 or later
2020
* Requires at least: 3.5
21-
* Tested up to: 6.6
21+
* Tested up to: 6.7
2222
* WC requires at least: 2.0
23-
* WC tested up to: 9.3
23+
* WC tested up to: 9.5
2424
*
2525
* Text Domain: woo-payzen-payment
2626
* Domain Path: /languages/

0 commit comments

Comments
 (0)