From dad3a3a01baeae40f58b6b5b0718d99a096da659 Mon Sep 17 00:00:00 2001 From: Arthur Moreira Date: Fri, 2 Feb 2024 10:37:52 +0100 Subject: [PATCH 1/2] Fix deprecated warning --- src/Mondu/Mondu/GatewayDirectDebit.php | 5 +++-- src/Mondu/Mondu/GatewayInstallment.php | 5 +++-- src/Mondu/Mondu/GatewayInstallmentByInvoice.php | 5 +++-- src/Mondu/Mondu/GatewayInvoice.php | 5 +++-- src/Mondu/Mondu/MonduGateway.php | 11 +++++------ 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/Mondu/Mondu/GatewayDirectDebit.php b/src/Mondu/Mondu/GatewayDirectDebit.php index 35cf87c..cff30ab 100644 --- a/src/Mondu/Mondu/GatewayDirectDebit.php +++ b/src/Mondu/Mondu/GatewayDirectDebit.php @@ -7,10 +7,11 @@ class GatewayDirectDebit extends MonduGateway { public function __construct() { + $payment_instructions = __('SEPA - Pay later by direct debit', 'mondu'); $this->id = Plugin::PAYMENT_METHODS['direct_debit']; $this->title = __('Mondu SEPA Direct Debit', 'mondu'); - $this->description = __('SEPA - Pay later by direct debit', 'mondu'); - $this->method_description = __('SEPA - Pay later by direct debit', 'mondu'); + $this->description = $payment_instructions; + $this->method_description = $payment_instructions; $this->has_fields = true; parent::__construct(); diff --git a/src/Mondu/Mondu/GatewayInstallment.php b/src/Mondu/Mondu/GatewayInstallment.php index eb2a61d..b65fe62 100644 --- a/src/Mondu/Mondu/GatewayInstallment.php +++ b/src/Mondu/Mondu/GatewayInstallment.php @@ -7,10 +7,11 @@ class GatewayInstallment extends MonduGateway { public function __construct() { + $payment_instructions = __('Split payments - Pay Later in Installments by Direct Debit', 'mondu'); $this->id = Plugin::PAYMENT_METHODS['installment']; $this->title = __('Mondu Installments', 'mondu'); - $this->description = __('Split payments - Pay Later in Installments by Direct Debit', 'mondu'); - $this->method_description = __('Split payments - Pay Later in Installments by Direct Debit', 'mondu'); + $this->description = $payment_instructions; + $this->method_description = $payment_instructions; $this->has_fields = true; parent::__construct(); diff --git a/src/Mondu/Mondu/GatewayInstallmentByInvoice.php b/src/Mondu/Mondu/GatewayInstallmentByInvoice.php index 72fa97b..a522bf3 100644 --- a/src/Mondu/Mondu/GatewayInstallmentByInvoice.php +++ b/src/Mondu/Mondu/GatewayInstallmentByInvoice.php @@ -7,10 +7,11 @@ class GatewayInstallmentByInvoice extends MonduGateway { public function __construct() { + $payment_instructions = __('Split payments - Pay Later in Installments by Bank Transfer', 'mondu'); $this->id = Plugin::PAYMENT_METHODS['installment_by_invoice']; $this->title = __('Mondu Installments by Invoice', 'mondu'); - $this->description = __('Split payments - Pay Later in Installments by Bank Transfer', 'mondu'); - $this->method_description = __('Split payments - Pay Later in Installments by Bank Transfer', 'mondu'); + $this->description = $payment_instructions; + $this->method_description = $payment_instructions; $this->has_fields = true; parent::__construct(); diff --git a/src/Mondu/Mondu/GatewayInvoice.php b/src/Mondu/Mondu/GatewayInvoice.php index e3a5688..b3a7da2 100644 --- a/src/Mondu/Mondu/GatewayInvoice.php +++ b/src/Mondu/Mondu/GatewayInvoice.php @@ -7,10 +7,11 @@ class GatewayInvoice extends MonduGateway { public function __construct() { + $payment_instructions = __('Invoice - Pay later by bank transfer', 'mondu'); $this->id = Plugin::PAYMENT_METHODS['invoice']; $this->title = __('Mondu Invoice', 'mondu'); - $this->description = __('Invoice - Pay later by bank transfer', 'mondu'); - $this->method_description = __('Invoice - Pay later by bank transfer', 'mondu'); + $this->description = $payment_instructions; + $this->method_description = $payment_instructions; $this->has_fields = true; parent::__construct(); diff --git a/src/Mondu/Mondu/MonduGateway.php b/src/Mondu/Mondu/MonduGateway.php index 590310f..fe13f94 100644 --- a/src/Mondu/Mondu/MonduGateway.php +++ b/src/Mondu/Mondu/MonduGateway.php @@ -31,8 +31,7 @@ public function __construct() { $this->init_form_fields(); $this->init_settings(); - $this->instructions = $this->description; - $this->enabled = $this->is_enabled(); + $this->enabled = $this->is_enabled(); $this->mondu_request_wrapper = new MonduRequestWrapper(); @@ -74,8 +73,8 @@ public function payment_fields() { * Output for the order received page. */ public function thankyou_page() { - if ( $this->instructions ) { - echo wp_kses_post(wpautop(wptexturize($this->instructions))); + if ( $this->description ) { + echo wp_kses_post(wpautop(wptexturize($this->description))); } } @@ -89,8 +88,8 @@ public function email_instructions( $order ) { return; } - if ( $this->instructions && $this->id === $order->get_payment_method() ) { - echo wp_kses_post(wpautop(wptexturize($this->instructions))); + if ( $this->description && $this->id === $order->get_payment_method() ) { + echo wp_kses_post(wpautop(wptexturize($this->description))); } } From 766c210ca4ad5170d870bbb8fa6789f2b2d025d6 Mon Sep 17 00:00:00 2001 From: Arthur Moreira Date: Fri, 2 Feb 2024 10:38:26 +0100 Subject: [PATCH 2/2] Update i18n and add changelog --- README.txt | 6 +++- changelog.txt | 4 +++ languages/mondu-de_AT.mo | Bin 10253 -> 10335 bytes languages/mondu-de_AT.po | 40 +++++++++++++------------- languages/mondu-de_DE.mo | Bin 10253 -> 10335 bytes languages/mondu-de_DE.po | 40 +++++++++++++------------- languages/mondu-fr_FR.mo | Bin 10758 -> 10852 bytes languages/mondu-fr_FR.po | 40 +++++++++++++------------- languages/mondu-nl_NL.mo | Bin 10359 -> 10440 bytes languages/mondu-nl_NL.po | 40 +++++++++++++------------- languages/mondu.pot | 54 ++++++++++++++++++------------------ mondu-buy-now-pay-later.php | 4 +-- 12 files changed, 118 insertions(+), 110 deletions(-) diff --git a/README.txt b/README.txt index 60e1d42..4b014ea 100644 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: mondu-ai, arthurmmoreira, tikohov20 Tags: mondu, woocommerce, e-commerce, ecommerce, store, sales, sell, woo, woo commerce, shop, cart, shopping cart, sell online, checkout, payment, payments, bnpl, b2b Requires at least: 5.9.0 Tested up to: 6.2.2 -Stable tag: 2.1.3 +Stable tag: 2.1.4 Requires PHP: 7.4 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -57,6 +57,10 @@ Check out [Frequently Asked Questions](https://www.mondu.ai/faq) in the Mondu we == Changelog == += 2.1.4 = + +* Fix deprecated setting $instructions on payments + = 2.1.3 = * Include Installment by Invoice payment method diff --git a/changelog.txt b/changelog.txt index b463819..3cf3953 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,9 @@ == Changelog == += 2.1.4 = + +* Fix deprecated setting $instructions on payments + = 2.1.3 = * Include Installment by Invoice payment method diff --git a/languages/mondu-de_AT.mo b/languages/mondu-de_AT.mo index a8f052c265b26d58eba9d27a4de3910d379815be..cd9f19dfd6b56180c3437d6c0fd744065d70af19 100644 GIT binary patch delta 1674 zcmYM!eN4?!9LMp~?b)qcH+qs(q9?Ugge5h$j0|ZSOET$FmfCEY`R8IYvx$hUdFq-q zSu@n~Fj{M4**t7m%oxQ+m^Ev|(#-p_``eg$opXM_-}ijaIp0%r>HAXmy9mG2hJQ8u z%;2ZMS3P4Y1O6LGb2I%6bm44l!C>q~eb0)Q@GttIonUPkjt(E=HdkoG z`WSON$e1u5JSVCGeL#lH4^#pZI1O!6yw9UCl70$mf&$b8D=`$;U<_7bIyRvaYDc|y z32!jJ>7=0*RoK0O-KYS^PzjvFsn~)3cn71g-+KNEBj^ufJdUHjcaoLH6HwphqP|;h zS%nVfH+yL4#Y32kZI<_N7X4wX?@LtmQ!xokFcIsq9-DD4PGB6Su#GlchHRcGMshQ2 zQAf53-CE&Z8csZb%w<}UO)(y8ybHCJeVB+Zt?^%|qY38RbQDh15vKAh0T<$Y+<@AF zqgaj}yo^7?*nba=3*p9G!y>YniDRgY9c;^DjKO?dk2=HS*om!p9Sewl3%{d|sDnaL z0$r$@dBiU*bQraeFQ|lUk?em8jVRLBz!KC1>rgvUj)ho_s=#h9Dc_%qbejG~Hk z68Uc&6iOOqq5_s<67I%CJcX)(Uev7^!UyQXU^Wh7yzc*R8d_;oqWAvCAvefm;2d0p zx(!vR8mL2Un7t8St z>Q>}%>E#HvWt5${;+hTs<;;maR9Yqor_lL#5_z->nRDa1qRf(w$;})^kj$D UI)k=W?{L+-Y8!g?&uk9<2TM1l00000 delta 1642 zcmYM!Pe@cz6vy$S`7d?+pJp{WXondCtj6Y>oP4pHSvM;CrW-$SOIM+kN&6dzlL@khwT3{2puo#zO8D`-@R6tFr z`>tX)>st#A?Pz<1f8jdR1P!PFE@C`3V=&&qB=kAgUtk>lQFP-p>iGbo(s(rL`83pX z8yt6H6zkg|8oIF_)A5|+JxrrN>hym){Um1hFkXl?xEI&qFfPYm7>F^Xkz`ps5|g=6 zN0o)z*f#XW(%40VxvdIGhSj3RPoPqG0X=xr8GnvCk}=c~Oref$9#b)xPCjO!c3z1U zSc@Gvgg3AzhWz_zxL7R(2T&1DU=hw>A*PWYo!vg{#45ax;mqEL{ivfkMu8}R6R28g zhOpKj4R`1x8Ri ze}^i*PpJ8RBe7XH1)+sKsQYtJnb?TB-&;;&D~(!IL=RA}$0HoT0W82%R1U{x-HwB( z)V@JwW*imB91^?DJJ(&TqUREkAQpa{BQz@TJnC(ja%|$| zZ>PUG-Tz)sp#oXJ4H!mc73w)DOyjRP|P4G1j4W+=bfd6D+{7)jgFVfuTJOuCmyk*_8Ul{{Rosq&xrs diff --git a/languages/mondu-de_AT.po b/languages/mondu-de_AT.po index 30cb479..2ae163e 100644 --- a/languages/mondu-de_AT.po +++ b/languages/mondu-de_AT.po @@ -118,9 +118,9 @@ msgstr "Bei uns ist etwas passiert." #: src/Mondu/Mondu/Controllers/WebhooksController.php:116 #: src/Mondu/Mondu/Controllers/WebhooksController.php:135 #: src/Mondu/Mondu/Controllers/WebhooksController.php:158 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:174 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:192 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:210 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:180 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:198 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:216 msgid "Required params missing." msgstr "Erforderliche Parameter fehlen." @@ -136,28 +136,31 @@ msgstr "Mondu Bestellung ist athorisiert." msgid "Mondu order is on confirmed state." msgstr "Mondu Bestellung ist bestätigt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:183 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:167 +msgid "Mondu order is on declined state." +msgstr "Mondu Bestellung ist abgelehnt." + +#: src/Mondu/Mondu/Controllers/WebhooksController.php:189 msgid "Mondu invoice is on created state." msgstr "Mondu Rechnung ist erstellt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:201 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:207 msgid "Mondu invoice is on complete state." msgstr "Mondu Rechnung ist vollständig bezahlt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:219 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:225 msgid "Mondu invoice is on canceled state." msgstr "Mondu Rechnung ist storniert." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:237 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:243 msgid "Not Found" msgstr "Nicht gefunden" -#: src/Mondu/Mondu/GatewayDirectDebit.php:11 +#: src/Mondu/Mondu/GatewayDirectDebit.php:12 msgid "Mondu SEPA Direct Debit" msgstr "Mondu SEPA-Lastschrift" -#: src/Mondu/Mondu/GatewayDirectDebit.php:12 -#: src/Mondu/Mondu/GatewayDirectDebit.php:13 +#: src/Mondu/Mondu/GatewayDirectDebit.php:10 msgid "SEPA - Pay later by direct debit" msgstr "SEPA-Lastschrift - Später per Lastschrift bezahlen" @@ -166,34 +169,31 @@ msgstr "SEPA-Lastschrift - Später per Lastschrift bezahlen" msgid "Enable %s payment method" msgstr "Aktivieren Sie %s Zahlungsart" -#: src/Mondu/Mondu/GatewayInstallment.php:11 +#: src/Mondu/Mondu/GatewayInstallment.php:12 msgid "Mondu Installments" msgstr "Mondu Ratenkauf" -#: src/Mondu/Mondu/GatewayInstallment.php:12 -#: src/Mondu/Mondu/GatewayInstallment.php:13 +#: src/Mondu/Mondu/GatewayInstallment.php:10 msgid "Split payments - Pay Later in Installments by Direct Debit" msgstr "Gesplittete Zahlungen - Ratenkauf per Lastschriftverfahren" -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:11 +#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:12 msgid "Mondu Installments by Invoice" msgstr "Mondu Ratenkauf per Rechnung" -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:12 -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:13 +#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:10 msgid "Split payments - Pay Later in Installments by Bank Transfer" msgstr "Gesplittete Zahlungen - Ratenkauf per Banküberweisung" -#: src/Mondu/Mondu/GatewayInvoice.php:11 +#: src/Mondu/Mondu/GatewayInvoice.php:12 msgid "Mondu Invoice" msgstr "Mondu Rechnungskauf" -#: src/Mondu/Mondu/GatewayInvoice.php:12 -#: src/Mondu/Mondu/GatewayInvoice.php:13 +#: src/Mondu/Mondu/GatewayInvoice.php:10 msgid "Invoice - Pay later by bank transfer" msgstr "Rechnungskauf - Später per Banküberweisung bezahlen" -#: src/Mondu/Mondu/MonduGateway.php:126 +#: src/Mondu/Mondu/MonduGateway.php:125 msgid "Error placing an order. Please try again." msgstr "Fehler beim Aufgeben einer Bestellung. Bitte versuchen Sie es erneut." diff --git a/languages/mondu-de_DE.mo b/languages/mondu-de_DE.mo index da7a6233b95745c5513fc0b18c2017a1b8a36a13..0bef5d5267ffa4674ad63fe71301a1eddb1aa84a 100644 GIT binary patch delta 1674 zcmYM!eN4?!9LMp~?b)qcH+qs(q9?Ugge5h$j0|ZSOET$FmfCEY`R8IYvx$hUdFq-q zSu@n~Fj{M4**t7m%oxQ+m^Ev|(#-p_``eg$opXM_-}ijaIp0%r>HAXmy9mG2hJQ8u z%;2ZMS3P4Y1O6LGb2I%6bm44l!C>q~eb0)Q@GttIonUPkjt(E=HdkoG z`WSON$e1u5JSVCGeL#lH4^#pZI1O!6yw9UCl70$mf&$b8D=`$;U<_7bIyRvaYDc|y z32!jJ>7=0*RoK0O-KYS^PzjvFsn~)3cn71g-+KNEBj^ufJdUHjcaoLH6HwphqP|;h zS%nVfH+yL4#Y32kZI<_N7X4wX?@LtmQ!xokFcIsq9-DD4PGB6Su#GlchHRcGMshQ2 zQAf53-CE&Z8csZb%w<}UO)(y8ybHCJeVB+Zt?^%|qY38RbQDh15vKAh0T<$Y+<@AF zqgaj}yo^7?*nba=3*p9G!y>YniDRgY9c;^DjKO?dk2=HS*om!p9Sewl3%{d|sDnaL z0$r$@dBiU*bQraeFQ|lUk?em8jVRLBz!KC1>rgvUj)ho_s=#h9Dc_%qbejG~Hk z68Uc&6iOOqq5_s<67I%CJcX)(Uev7^!UyQXU^Wh7yzc*R8d_;oqWAvCAvefm;2d0p zx(!vR8mL2Un7t8St z>Q>}%>E#HvWt5${;+hTs<;;maR9Yqor_lL#5_z->nRDa1qRf(w$;})^kj$D UI)k=W?{L+-Y8!g?&uk9<2TM1l00000 delta 1642 zcmYM!Pe@cz6vy$S`7d?+pJp{WXondCtj6Y>oP4pHSvM;CrW-$SOIM+kN&6dzlL@khwT3{2puo#zO8D`-@R6tFr z`>tX)>st#A?Pz<1f8jdR1P!PFE@C`3V=&&qB=kAgUtk>lQFP-p>iGbo(s(rL`83pX z8yt6H6zkg|8oIF_)A5|+JxrrN>hym){Um1hFkXl?xEI&qFfPYm7>F^Xkz`ps5|g=6 zN0o)z*f#XW(%40VxvdIGhSj3RPoPqG0X=xr8GnvCk}=c~Oref$9#b)xPCjO!c3z1U zSc@Gvgg3AzhWz_zxL7R(2T&1DU=hw>A*PWYo!vg{#45ax;mqEL{ivfkMu8}R6R28g zhOpKj4R`1x8Ri ze}^i*PpJ8RBe7XH1)+sKsQYtJnb?TB-&;;&D~(!IL=RA}$0HoT0W82%R1U{x-HwB( z)V@JwW*imB91^?DJJ(&TqUREkAQpa{BQz@TJnC(ja%|$| zZ>PUG-Tz)sp#oXJ4H!mc73w)DOyjRP|P4G1j4W+=bfd6D+{7)jgFVfuTJOuCmyk*_8Ul{{Rosq&xrs diff --git a/languages/mondu-de_DE.po b/languages/mondu-de_DE.po index 4768f8f..73d6436 100644 --- a/languages/mondu-de_DE.po +++ b/languages/mondu-de_DE.po @@ -118,9 +118,9 @@ msgstr "Bei uns ist etwas passiert." #: src/Mondu/Mondu/Controllers/WebhooksController.php:116 #: src/Mondu/Mondu/Controllers/WebhooksController.php:135 #: src/Mondu/Mondu/Controllers/WebhooksController.php:158 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:174 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:192 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:210 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:180 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:198 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:216 msgid "Required params missing." msgstr "Erforderliche Parameter fehlen." @@ -136,28 +136,31 @@ msgstr "Mondu Bestellung ist athorisiert." msgid "Mondu order is on confirmed state." msgstr "Mondu Bestellung ist bestätigt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:183 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:167 +msgid "Mondu order is on declined state." +msgstr "Mondu Bestellung ist abgelehnt." + +#: src/Mondu/Mondu/Controllers/WebhooksController.php:189 msgid "Mondu invoice is on created state." msgstr "Mondu Rechnung ist erstellt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:201 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:207 msgid "Mondu invoice is on complete state." msgstr "Mondu Rechnung ist vollständig bezahlt." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:219 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:225 msgid "Mondu invoice is on canceled state." msgstr "Mondu Rechnung ist storniert." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:237 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:243 msgid "Not Found" msgstr "Nicht gefunden" -#: src/Mondu/Mondu/GatewayDirectDebit.php:11 +#: src/Mondu/Mondu/GatewayDirectDebit.php:12 msgid "Mondu SEPA Direct Debit" msgstr "Mondu SEPA-Lastschrift" -#: src/Mondu/Mondu/GatewayDirectDebit.php:12 -#: src/Mondu/Mondu/GatewayDirectDebit.php:13 +#: src/Mondu/Mondu/GatewayDirectDebit.php:10 msgid "SEPA - Pay later by direct debit" msgstr "SEPA-Lastschrift - Später per Lastschrift bezahlen" @@ -166,34 +169,31 @@ msgstr "SEPA-Lastschrift - Später per Lastschrift bezahlen" msgid "Enable %s payment method" msgstr "Aktivieren Sie %s Zahlungsart" -#: src/Mondu/Mondu/GatewayInstallment.php:11 +#: src/Mondu/Mondu/GatewayInstallment.php:12 msgid "Mondu Installments" msgstr "Mondu Ratenkauf" -#: src/Mondu/Mondu/GatewayInstallment.php:12 -#: src/Mondu/Mondu/GatewayInstallment.php:13 +#: src/Mondu/Mondu/GatewayInstallment.php:10 msgid "Split payments - Pay Later in Installments by Direct Debit" msgstr "Gesplittete Zahlungen - Ratenkauf per Lastschriftverfahren" -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:11 +#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:12 msgid "Mondu Installments by Invoice" msgstr "Mondu Ratenkauf per Rechnung" -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:12 -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:13 +#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:10 msgid "Split payments - Pay Later in Installments by Bank Transfer" msgstr "Gesplittete Zahlungen - Ratenkauf per Banküberweisung" -#: src/Mondu/Mondu/GatewayInvoice.php:11 +#: src/Mondu/Mondu/GatewayInvoice.php:12 msgid "Mondu Invoice" msgstr "Mondu Rechnungskauf" -#: src/Mondu/Mondu/GatewayInvoice.php:12 -#: src/Mondu/Mondu/GatewayInvoice.php:13 +#: src/Mondu/Mondu/GatewayInvoice.php:10 msgid "Invoice - Pay later by bank transfer" msgstr "Rechnungskauf - Später per Banküberweisung bezahlen" -#: src/Mondu/Mondu/MonduGateway.php:126 +#: src/Mondu/Mondu/MonduGateway.php:125 msgid "Error placing an order. Please try again." msgstr "Fehler beim Aufgeben einer Bestellung. Bitte versuchen Sie es erneut." diff --git a/languages/mondu-fr_FR.mo b/languages/mondu-fr_FR.mo index 6331c227e33e6342e61bd86c659e4c81fc18e47c..adcbea0e57ef9ea8786cd7b42754cf4c4d497e6a 100644 GIT binary patch delta 1675 zcmYM!YfQ~?9LMo*r<+tK6N&Biu&9=^x|vRFQ}~sFb@A>1je%2aU6o)Fmvnz zgY+=7>x0Y^c=4QFwb5JTk@cYh7{H^5M_@K(^x#~ic(wqE z%}P-%TZxV`+`%9b_aJ9k6H*jwcAp1PrM!a~_|kpek7`W}eN!tEQ7z2jj}NEeR9uFt zzE96q88r8TX-K;DTg$4 za4Ra48>kGQB1zgSR15mtc|WQ$3G|gMEDd#D0dh|rTf#skU4tZNTipeXNb(j$mFfXf zWqXOa_!Sj!Dvi#;Ihcp*aS|RweH$KPCidZXOwI_skKkdJzW;s($~b^rOsha0v;h^d zgUaZH>lsu9+E69Gg$lG2N!Gei0sKL&o5*)or7lA48$hkwgfltc_Aw~Nhe(j-9b>i> z^RNROT&MG2>JIZ>RA#|(q0)C@8S{6z9H-JJweA46;}LAdd6elRenutqg7Vd{m%U=3 zf02K25RPX;buAwiX&Fw&I#dQHQ5Cy_^w6$j5q6?3StR|@T}Z(K%**X4iSk58RaLL6 c-B8ytC4Og8(=K0p delta 1642 zcmYM!U1-)-90%~@%bdCP(zKbCZEl&(mz0`98Y3zqhRZH=#A1YmB_Rrx7bEboi%Mu9 zB?GOCyf8JWW(+YBDI`gvWKO0(cYOAck(K}!8|v{CVpCZmRaf|ujcQZ&MVx@ zV$r54rB?Q7%$rim;hCj08$W5)Ec7`Im7kacT;v>Hs=lwERm!#cZOjHsnGNn_BYSxr z*Rq?Nm;>!*=I!CT_Ah%i5>a2nWYPJ9wZPKgE>fYo-K0Fs1vO?X1)3 z;X)?zL2lqy9^yyb&n+$TKc>-Wx0`r^Iq|n#!wX!^PU%VQhIp78d4#j9evHSN(md^g z=+qjC$xQPq6hkx*BHGZ&T@@@K(3G_0X^ZsAa$Oa9b%1IY6k@QyH z$3))8qt1H&HF}rVa0wsa6KuDCIifMZ36677*Q958 zLVvekr@Y_&3nx=P%!l-!=fnJpDcN#$I>H_vg+8_qdW1-Q$BZrq++|XdG%CukRR|^)G(R Bp%(xE diff --git a/languages/mondu-fr_FR.po b/languages/mondu-fr_FR.po index 15f499e..f6939ba 100644 --- a/languages/mondu-fr_FR.po +++ b/languages/mondu-fr_FR.po @@ -118,9 +118,9 @@ msgstr "Quelque chose s'est passé de notre côté." #: src/Mondu/Mondu/Controllers/WebhooksController.php:116 #: src/Mondu/Mondu/Controllers/WebhooksController.php:135 #: src/Mondu/Mondu/Controllers/WebhooksController.php:158 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:174 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:192 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:210 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:180 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:198 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:216 msgid "Required params missing." msgstr "Paramètres requis manquants." @@ -136,28 +136,31 @@ msgstr "La commande Mondu est en cours d'autorisation." msgid "Mondu order is on confirmed state." msgstr "La commande Mondu est dans l'état confirmé." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:183 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:167 +msgid "Mondu order is on declined state." +msgstr "La commande Mondu est dans l'état refusé." + +#: src/Mondu/Mondu/Controllers/WebhooksController.php:189 msgid "Mondu invoice is on created state." msgstr "La facture Mondu est à l'état créé." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:201 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:207 msgid "Mondu invoice is on complete state." msgstr "La facture Mondu est à l'état complet." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:219 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:225 msgid "Mondu invoice is on canceled state." msgstr "La facture Mondu est dans l'état annulé." -#: src/Mondu/Mondu/Controllers/WebhooksController.php:237 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:243 msgid "Not Found" msgstr "Aucun résultat" -#: src/Mondu/Mondu/GatewayDirectDebit.php:11 +#: src/Mondu/Mondu/GatewayDirectDebit.php:12 msgid "Mondu SEPA Direct Debit" msgstr "Mondu Prélèvement SEPA" -#: src/Mondu/Mondu/GatewayDirectDebit.php:12 -#: src/Mondu/Mondu/GatewayDirectDebit.php:13 +#: src/Mondu/Mondu/GatewayDirectDebit.php:10 msgid "SEPA - Pay later by direct debit" msgstr "SEPA - Payer plus tard par prélèvement SEPA" @@ -166,34 +169,31 @@ msgstr "SEPA - Payer plus tard par prélèvement SEPA" msgid "Enable %s payment method" msgstr "Activer %s mode de paiement" -#: src/Mondu/Mondu/GatewayInstallment.php:11 +#: src/Mondu/Mondu/GatewayInstallment.php:12 msgid "Mondu Installments" msgstr "Mondu Paiements Fractionnés" -#: src/Mondu/Mondu/GatewayInstallment.php:12 -#: src/Mondu/Mondu/GatewayInstallment.php:13 +#: src/Mondu/Mondu/GatewayInstallment.php:10 msgid "Split payments - Pay Later in Installments by Direct Debit" msgstr "Paiements fractionnés - Payer plus tard en plusieurs fois par prélèvement automatique" -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:11 +#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:12 msgid "Mondu Installments by Invoice" msgstr "Mondu Paiements par facture" -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:12 -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:13 +#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:10 msgid "Split payments - Pay Later in Installments by Bank Transfer" msgstr "Paiements fractionnés - Payer plus tard en plusieurs fois par virement bancaire" -#: src/Mondu/Mondu/GatewayInvoice.php:11 +#: src/Mondu/Mondu/GatewayInvoice.php:12 msgid "Mondu Invoice" msgstr "Mondu Facture" -#: src/Mondu/Mondu/GatewayInvoice.php:12 -#: src/Mondu/Mondu/GatewayInvoice.php:13 +#: src/Mondu/Mondu/GatewayInvoice.php:10 msgid "Invoice - Pay later by bank transfer" msgstr "Facture - Payez plus tard par virement" -#: src/Mondu/Mondu/MonduGateway.php:126 +#: src/Mondu/Mondu/MonduGateway.php:125 msgid "Error placing an order. Please try again." msgstr "Erreur de commande. Veuillez réessayer." diff --git a/languages/mondu-nl_NL.mo b/languages/mondu-nl_NL.mo index 1671a26969e95db74514b0eaa323a587e59360b3..cb39215ca1131e89270021e748dd2d54c7e56c24 100644 GIT binary patch delta 1673 zcmYM!SxD4T6vy%7zU7*0lqo0dz+>W;~1Se6?O=ARpa{P`OY8^M>AN0pC2J6EpjPNm!jnYW+ zF`EiDi{!#AqiUcp$SM1U3Sb>$(Kpn4JptqBXQ3u2MomzG;dlfSu@-Z%9Tm`h)O`=} z3G>?s4Xx-@n0H_gYJeV80R6ZbhcE!2V**Y)*B3E{{xT-x3hMc2qSE5ktF%V_;2+N2f1%IL znfDyD&}Gy@zM%s0jU)eAG~x+gCrVHgRG~6ajiq=NiP0XQ1{}u%e23@Qyz8h5+!S~> zwqYI)pce8070?2bG+T8H@DPqBj773yiKyL~jYF7+E+&|B+(_~Ul1YJ8vO-i%51|4+ zj>KYTPyx3){p-&4epG2kk!@n0r!@H58xC6O5-Ol%c8CH=$0^Lhz4#gRU=mwhx=<@D zLKbCZs1npT{W?@;+MRwUYQB3&pdK6dHf#o!+9iy~6{Nft%7&21s1@fUm#iGOU;`49 zT}HhfeaP2dIDW)T`oD1!lc_^K&S8q)fB!V^iZk)wicqO6LcUhcK`CoQt+Wl5+773G z0~L5LDxeW8$G1qeEHK^smZYKX%SM%`1ap|*PS7}jS5TX98mn;*Ut>;&*RQBj46__A zSp)xCs{K_wj6GP1i>N>|c6i^CT{uR69_O)(9nZh9)wtNOWWnlbD6&q}N_$a}4>(R? zHvL&tX*SRoV>qej;;59LMqRo^5lty9Z{NU7MN9#xU}@+EzmIR4yTZ2vciqBFR6yvm~M@4f7YZ zbVX~!6(iE)Kp(^EPlgS9L4i!Oqvp9L2IFr z9c308W0uPJ17_7keaMi#M+NW&Gx4Xpo{(fVj{bPm0!63=7NZBtZ~|7LA9teyI)%FL z4BldWJ5NJ9TAdtOxE?h@11f-%n1Rh0hgUEQJKXh0m`=YJbMPbT`6!~&cq;1oJk)aw zoog|L^{twQZajebc+A<3dGvc-|Cj4$F}siPC0L8wa2EF9Bpk+Q^pZxBWf@3JmV+vl zAGNU+7)+zFjs|nv4kQ^?hZ;YGO5q9gVXGT|h$_h|R0-apN;iVJ7)PfR3s5`XiUF*{ z%h-(LwbOP~L_?@RzT;gS#>IG@lcNVeJ4aAEjN!-= zt9ei*C~*B*sLWKleibs6?Lr0G7%^yPX(+YrI3Bx@@>;)h2ssA!7kQhPgF+H)HtIC5 zLj6jrk+&V^D<4C68=qhaHc\n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-11-28T13:26:39+00:00\n" +"POT-Creation-Date: 2024-02-02T09:27:21+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.9.0\n" "X-Domain: mondu\n" @@ -121,9 +121,9 @@ msgstr "" #: src/Mondu/Mondu/Controllers/WebhooksController.php:116 #: src/Mondu/Mondu/Controllers/WebhooksController.php:135 #: src/Mondu/Mondu/Controllers/WebhooksController.php:158 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:174 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:192 -#: src/Mondu/Mondu/Controllers/WebhooksController.php:210 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:180 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:198 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:216 msgid "Required params missing." msgstr "" @@ -139,29 +139,32 @@ msgstr "" msgid "Mondu order is on confirmed state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:183 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:167 +msgid "Mondu order is on declined state." +msgstr "" + +#: src/Mondu/Mondu/Controllers/WebhooksController.php:189 msgid "Mondu invoice is on created state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:201 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:207 msgid "Mondu invoice is on complete state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:219 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:225 msgid "Mondu invoice is on canceled state." msgstr "" -#: src/Mondu/Mondu/Controllers/WebhooksController.php:237 +#: src/Mondu/Mondu/Controllers/WebhooksController.php:243 msgid "Not Found" msgstr "" -#: src/Mondu/Mondu/GatewayDirectDebit.php:11 -msgid "Mondu SEPA Direct Debit" +#: src/Mondu/Mondu/GatewayDirectDebit.php:10 +msgid "SEPA - Pay later by direct debit" msgstr "" #: src/Mondu/Mondu/GatewayDirectDebit.php:12 -#: src/Mondu/Mondu/GatewayDirectDebit.php:13 -msgid "SEPA - Pay later by direct debit" +msgid "Mondu SEPA Direct Debit" msgstr "" #. translators: %s: Payment Method @@ -169,34 +172,31 @@ msgstr "" msgid "Enable %s payment method" msgstr "" -#: src/Mondu/Mondu/GatewayInstallment.php:11 -msgid "Mondu Installments" +#: src/Mondu/Mondu/GatewayInstallment.php:10 +msgid "Split payments - Pay Later in Installments by Direct Debit" msgstr "" #: src/Mondu/Mondu/GatewayInstallment.php:12 -#: src/Mondu/Mondu/GatewayInstallment.php:13 -msgid "Split payments - Pay Later in Installments by Direct Debit" +msgid "Mondu Installments" msgstr "" -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:11 -msgid "Mondu Installments by Invoice" +#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:10 +msgid "Split payments - Pay Later in Installments by Bank Transfer" msgstr "" #: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:12 -#: src/Mondu/Mondu/GatewayInstallmentByInvoice.php:13 -msgid "Split payments - Pay Later in Installments by Bank Transfer" +msgid "Mondu Installments by Invoice" msgstr "" -#: src/Mondu/Mondu/GatewayInvoice.php:11 -msgid "Mondu Invoice" +#: src/Mondu/Mondu/GatewayInvoice.php:10 +msgid "Invoice - Pay later by bank transfer" msgstr "" #: src/Mondu/Mondu/GatewayInvoice.php:12 -#: src/Mondu/Mondu/GatewayInvoice.php:13 -msgid "Invoice - Pay later by bank transfer" +msgid "Mondu Invoice" msgstr "" -#: src/Mondu/Mondu/MonduGateway.php:126 +#: src/Mondu/Mondu/MonduGateway.php:125 msgid "Error placing an order. Please try again." msgstr "" diff --git a/mondu-buy-now-pay-later.php b/mondu-buy-now-pay-later.php index 0bc9b3f..ec15379 100644 --- a/mondu-buy-now-pay-later.php +++ b/mondu-buy-now-pay-later.php @@ -3,7 +3,7 @@ * Plugin Name: Mondu Buy Now Pay Later * Plugin URI: https://github.com/mondu-ai/bnpl-checkout-woocommerce/releases * Description: Mondu provides B2B E-commerce and B2B marketplaces with an online payment solution to buy now and pay later. - * Version: 2.1.3 + * Version: 2.1.4 * Author: Mondu * Author URI: https://mondu.ai * @@ -25,7 +25,7 @@ die( 'Direct access not allowed' ); } -define( 'MONDU_PLUGIN_VERSION', '2.1.3' ); +define( 'MONDU_PLUGIN_VERSION', '2.1.4' ); define( 'MONDU_PLUGIN_FILE', __FILE__ ); define( 'MONDU_PLUGIN_PATH', __DIR__ ); define( 'MONDU_PLUGIN_BASENAME', plugin_basename(MONDU_PLUGIN_FILE) );