Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/7.4.1 #852

Merged
merged 39 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
3b1e75a
Show notice to user if payment is not successful
inpsyde-maticluznar Aug 1, 2023
c93a39b
Fix spacing phpcs errors
inpsyde-maticluznar Aug 1, 2023
bd741a7
Create FrontendNotice class and use it in the MolliePaymentGateway mo…
inpsyde-maticluznar Aug 1, 2023
a656355
Check if WC_Subscription class exists instead the subscription plugin…
inpsyde-maticluznar Sep 12, 2023
3e7c756
Check if surcharge array key exists.
inpsyde-maticluznar Sep 19, 2023
b686086
Add details to customer email
mmaymo Oct 17, 2023
a92bdd0
Change status on webhook completed & cbf
mmaymo Oct 18, 2023
17bf7e4
Check 422 fraud exception and bail
mmaymo Oct 18, 2023
1b842f6
Update wiki and support links
mmaymo Oct 19, 2023
4069e88
Add metabox to show payment details
mmaymo Oct 20, 2023
a239792
Merge branch 'develop' into fix/PIWOO-300-update-support-links
mmaymo Oct 20, 2023
ce1b898
update initial_order_status description
mmaymo Oct 20, 2023
0e39885
Merge branch 'develop' into fix/PIWOO-108-complete-on-shipping
mmaymo Oct 20, 2023
d52ff1e
Merge branch 'develop' into fix/PIWOO-272-banktransfer-mail
mmaymo Oct 20, 2023
9fcee7e
Merge branch 'develop' into fix/PIWOO-288-fraud-no-retry
mmaymo Oct 20, 2023
ddd3d2c
Add unit test to check exception
mmaymo Oct 20, 2023
94b0172
Merge branch 'fix/PIWOO-300-update-support-links' into release/7.4.1
mmaymo Oct 20, 2023
376491a
Merge branch 'fix/PIWOO-108-complete-on-shipping' into release/7.4.1
mmaymo Oct 20, 2023
b7c92fd
Merge branch 'fix/PIWOO-272-banktransfer-mail' into release/7.4.1
mmaymo Oct 20, 2023
a4f72f0
Merge branch 'fix/PIWOO-288-fraud-no-retry' into release/7.4.1
mmaymo Oct 20, 2023
b544faf
Merge branch 'fix/PIWOO-353-banktransfer-expired' into release/7.4.1
mmaymo Oct 20, 2023
c2077b4
Capture payment manually
inpsyde-maticluznar Oct 24, 2023
5732e5c
Remove payment method type capture const from PaymentService
inpsyde-maticluznar Oct 24, 2023
257ce09
Fix CS
mmaymo Oct 24, 2023
a3a1aff
Merge branch 'fix/PIWOO-272-banktransfer-mail' into release/7.4.1
mmaymo Oct 24, 2023
207c5f6
Update version and pot
mmaymo Oct 24, 2023
ad40c09
Merge branch 'feature/PIWOO-229' into release/7.4.1
inpsyde-maticluznar Oct 24, 2023
7637b47
Merge remote-tracking branch 'origin/fix/PIWOO-196' into release/7.4.1
inpsyde-maticluznar Oct 24, 2023
1f47ca9
Merge branch 'fix/MOL-808' into release/7.4.1
inpsyde-maticluznar Oct 24, 2023
d1424a5
Merge remote-tracking branch 'origin/fix/PIWOO-348' into release/7.4.1
inpsyde-maticluznar Oct 24, 2023
71b2253
Fix NoticeModule namespace.
inpsyde-maticluznar Oct 24, 2023
dd902c7
Set minimum expiry time to 10.
inpsyde-maticluznar Oct 24, 2023
bdbd3dd
Remove dueDate description.
inpsyde-maticluznar Oct 25, 2023
69ed8f7
Replace addNotice with wc_print_notice
inpsyde-maticluznar Oct 26, 2023
7fc1156
Code style.
inpsyde-maticluznar Oct 26, 2023
760a501
Merge remote-tracking branch 'origin/fix/MOL-808' into release/7.4.1
inpsyde-maticluznar Oct 26, 2023
0e82e62
Change the description, fix banktransfer and skip gateways wihout expiry
inpsyde-maticluznar Oct 26, 2023
c82b9db
Fix wrong gateway name when canceling the order
inpsyde-maticluznar Oct 26, 2023
e1ca262
Merge branch 'fix/PIWOO-327-Order-is-not-canceled' into release/7.4.1
mmaymo Oct 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions inc/settings/mollie_advanced_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,36 @@ class="mollie-settings-advanced-payment-desc-label button button-secondary butto
__('Clear now', 'mollie-payments-for-woocommerce')
) . '</a>)',
],
[
'id' => $pluginName . '_place_payment_onhold',
'title' => __('Placing payments on Hold', 'mollie-payments-for-woocommerce'),
'type' => 'select',
'desc_tip' => true,
'options' => [
'immediate_capture' => __('Capture payments immediately', 'mollie-payments-for-woocommerce'),
'later_capture' => __('Authorize payments for a later capture', 'mollie-payments-for-woocommerce'),
],
'default' => 'immediate_capture',
'desc' => sprintf(
__(
'Authorized payment can be captured or voided by changing the order status instead of doing it manually.',
'mollie-payments-for-woocommerce'
)
),
],
[
'id' => $pluginName . '_capture_or_void',
'title' => __(
'Capture or void on status change',
'mollie-payments-for-woocommerce'
),
'type' => 'checkbox',
'default' => 'no',
'desc' => __(
'Capture authorized payments automatically when setting the order status to Processing or Completed. Void the payment by setting the order status Canceled.',
'mollie-payments-for-woocommerce'
),
],
[
'id' => $pluginName . '_sectionend',
'type' => 'sectionend',
Expand Down
112 changes: 63 additions & 49 deletions languages/en_GB.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# This file is distributed under the GPLv2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Mollie Payments for WooCommerce 7.4.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/WooCommerce\n"
"Project-Id-Version: Mollie Payments for WooCommerce 7.4.1-beta\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/html\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-10-20T15:51:47+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.8.1\n"
"X-Domain: mollie-payments-for-woocommerce\n"
Expand Down Expand Up @@ -508,7 +509,7 @@ msgstr ""
#: src/Buttons/ApplePayButton/AppleAjaxRequests.php:700
#: src/Buttons/PayPalButton/PayPalAjaxRequests.php:113
#: src/Buttons/PayPalButton/PayPalAjaxRequests.php:157
#: src/Payment/PaymentService.php:716
#: src/Payment/PaymentService.php:718
msgid "Could not create %s payment."
msgstr ""

Expand All @@ -520,85 +521,89 @@ msgstr ""
msgid "%1$sApple Pay Validation Error%2$s Check %3$sApple Server requirements page%4$s to fix it in order to make the Apple Pay button work"
msgstr ""

#: src/Gateway/GatewayModule.php:655
#: src/Gateway/GatewayModule.php:326
msgid "Mollie Payment Details"
msgstr ""

#: src/Gateway/GatewayModule.php:682
msgid "Error processing %1$s payment, the %2$s field is required."
msgstr ""

#: src/Gateway/GatewayModule.php:669
#: src/Gateway/GatewayModule.php:696
msgid "Please enter your %1$s, this is required for %2$s payments"
msgstr ""

#: src/Gateway/MolliePaymentGateway.php:269
#: src/Gateway/MolliePaymentGateway.php:276
#: src/Settings/Page/MollieSettingsPage.php:314
msgid "Test mode enabled."
msgstr ""

#. translators: The surrounding %s's Will be replaced by a link to the global setting page
#: src/Gateway/MolliePaymentGateway.php:274
#: src/Gateway/MolliePaymentGateway.php:281
msgid "No API key provided. Please %1$sset you Mollie API key%2$s first."
msgstr ""

#. translators: Placeholder 1: payment method title. The surrounding %s's Will be replaced by a link to the Mollie profile
#: src/Gateway/MolliePaymentGateway.php:289
#: src/Gateway/MolliePaymentGateway.php:296
msgid "%1$s not enabled in your Mollie profile. You can enable it by editing your %2$sMollie profile%3$s."
msgstr ""

#. translators: Placeholder 1: WooCommerce currency, placeholder 2: Supported Mollie currencies
#: src/Gateway/MolliePaymentGateway.php:304
#: src/Gateway/MolliePaymentGateway.php:311
msgid "Current shop currency %1$s not supported by Mollie. Read more about %2$ssupported currencies and payment methods.%3$s "
msgstr ""

#: src/Gateway/MolliePaymentGateway.php:575
#: src/Gateway/MolliePaymentGateway.php:582
msgid "You have cancelled your payment. Please complete your order with a different payment method."
msgstr ""

#: src/Gateway/MolliePaymentGateway.php:596
#: src/Gateway/MolliePaymentGateway.php:610
#: src/Gateway/MolliePaymentGateway.php:603
#: src/Gateway/MolliePaymentGateway.php:617
msgid "Your payment was not successful. Please complete your order with a different payment method."
msgstr ""

#: src/Gateway/MolliePaymentGateway.php:646
#: src/Gateway/MolliePaymentGateway.php:653
msgid "Could not load order %s"
msgstr ""

#: src/Gateway/MolliePaymentGateway.php:899
#: src/Gateway/MolliePaymentGateway.php:918
msgid "Order cancelled"
msgstr ""

#. translators: Placeholder 1: payment method title, placeholder 2: payment ID
#: src/Gateway/MolliePaymentGateway.php:933
#: src/Gateway/MolliePaymentGateway.php:952
msgid "%1$s payment still pending (%2$s) but customer already returned to the store. Status should be updated automatically in the future, if it doesn't this might indicate a communication issue between the site and Mollie."
msgstr ""

#: src/Gateway/MolliePaymentGateway.php:939
#: src/Gateway/MolliePaymentGateway.php:958
#: src/Payment/MollieObject.php:682
#: src/Payment/MollieObject.php:714
#: src/Payment/MollieOrder.php:281
#: src/Payment/MollieOrder.php:338
#: src/Payment/MollieOrder.php:382
#: src/Payment/MollieOrder.php:463
#: src/Payment/MollieOrder.php:534
#: src/Payment/MollieOrder.php:877
#: src/Payment/MollieOrderService.php:171
#: src/Payment/MollieOrderService.php:437
#: src/Payment/MollieOrderService.php:500
#: src/Payment/MollieOrderService.php:714
#: src/Payment/MollieOrder.php:389
#: src/Payment/MollieOrder.php:470
#: src/Payment/MollieOrder.php:541
#: src/Payment/MollieOrder.php:884
#: src/Payment/MollieOrderService.php:172
#: src/Payment/MollieOrderService.php:438
#: src/Payment/MollieOrderService.php:501
#: src/Payment/MollieOrderService.php:715
#: src/Payment/MolliePayment.php:236
#: src/Payment/MolliePayment.php:323
#: src/Payment/MolliePayment.php:399
#: src/Payment/MolliePayment.php:423
#: src/Payment/PaymentService.php:801
#: src/Payment/PaymentService.php:803
#: src/Subscription/MollieSepaRecurringGateway.php:137
#: src/Subscription/MollieSepaRecurringGateway.php:204
#: src/Subscription/MollieSubscriptionGateway.php:458
msgid "test mode"
msgstr ""

#: src/Gateway/MolliePaymentGateway.php:950
#: src/Gateway/MolliePaymentGateway.php:969
msgid ", payment pending."
msgstr ""

#: src/Gateway/MolliePaymentGateway.php:982
#: src/Gateway/MolliePaymentGateway.php:1001
msgid "Your order has been cancelled."
msgstr ""

Expand Down Expand Up @@ -766,72 +771,72 @@ msgid "Order authorized using %1$s payment (%2$s). Set order to completed in Woo
msgstr ""

#. translators: Placeholder 1: payment method title, placeholder 2: payment ID
#: src/Payment/MollieOrder.php:380
#: src/Payment/MollieOrder.php:387
msgid "Order completed at Mollie for %1$s order (%2$s). At least one order line completed. Remember: Completed status for an order at Mollie is not the same as Completed status in WooCommerce!"
msgstr ""

#. translators: Placeholder 1: payment method title, placeholder 2: payment ID
#: src/Payment/MollieOrder.php:461
#: src/Payment/MollieOrder.php:468
msgid "%1$s order (%2$s) cancelled ."
msgstr ""

#. translators: Placeholder 1: payment method title, placeholder 2: payment ID
#: src/Payment/MollieOrder.php:532
#: src/Payment/MollieOrder.php:539
msgid "%1$s order expired (%2$s) but not cancelled because of another pending payment (%3$s)."
msgstr ""

#: src/Payment/MollieOrder.php:627
#: src/Payment/MollieOrder.php:634
msgctxt "Order note error"
msgid "The sum of refunds for all order lines is not identical to the refund amount, so this refund will be processed as a payment amount refund, not an order line refund."
msgstr ""

#: src/Payment/MollieOrder.php:759
#: src/Payment/MollieOrder.php:766
msgctxt "Order note error"
msgid "Can not refund order amount that has status %1$s at Mollie."
msgstr ""

#: src/Payment/MollieOrder.php:781
#: src/Payment/MollieOrder.php:788
msgid "Amount refund of %1$s%2$s refunded in WooCommerce and at Mollie.%3$s Refund ID: %4$s."
msgstr ""

#. translators: Placeholder 1: payment method title, placeholder 2: payment ID
#: src/Payment/MollieOrder.php:872
#: src/Payment/MollieOrder.php:879
msgid "%1$s order (%2$s) expired ."
msgstr ""

#: src/Payment/MollieOrder.php:1095
#: src/Payment/MollieOrder.php:1102
msgid "%1$sx %2$s cancelled for %3$s%4$s in WooCommerce and at Mollie."
msgstr ""

#: src/Payment/MollieOrder.php:1119
#: src/Payment/MollieOrder.php:1126
msgid "%1$sx %2$s refunded for %3$s%4$s in WooCommerce and at Mollie.%5$s Refund ID: %6$s."
msgstr ""

#. translators: Placeholder 1: payment method title, placeholder 2: payment status, placeholder 3: payment ID
#: src/Payment/MollieOrderService.php:168
#: src/Payment/MollieOrderService.php:169
msgid "%1$s payment %2$s (%3$s), not processed."
msgstr ""

#: src/Payment/MollieOrderService.php:400
#: src/Payment/MollieOrderService.php:401
msgid "New chargeback %s processed! Order note and order status updated."
msgstr ""

#. translators: Placeholder 1: payment method title, placeholder 2: payment ID
#: src/Payment/MollieOrderService.php:432
#: src/Payment/MollieOrderService.php:433
msgid "%1$s payment charged back via Mollie (%2$s). You will need to manually review the payment (and adjust product stocks if you use it)."
msgstr ""

#. translators: Placeholder 1: payment method title, placeholder 2: payment ID
#: src/Payment/MollieOrderService.php:494
#: src/Payment/MollieOrderService.php:495
msgid "%1$s payment charged back via Mollie (%2$s). Subscription status updated, please review (and adjust product stocks if you use it)."
msgstr ""

#. translators: Placeholder 1: payment method title, placeholder 2: payment ID
#: src/Payment/MollieOrderService.php:701
#: src/Payment/MollieOrderService.php:702
msgid "%1$s payment %2$s via Mollie (%3$s %4$s). You will need to manually review the payment (and adjust product stocks if you use it)."
msgstr ""

#: src/Payment/MollieOrderService.php:814
#: src/Payment/MollieOrderService.php:815
msgid "New refund %s processed in Mollie Dashboard! Order note added, but order not updated."
msgstr ""

Expand Down Expand Up @@ -930,35 +935,39 @@ msgctxt "Order note info"
msgid "Order could not be canceled at Mollie, because order status is "
msgstr ""

#: src/Payment/PaymentService.php:622
#: src/Payment/PaymentService.php:624
msgid "Subscription switch failed, no valid mandate found. Place a completely new order to change your subscription."
msgstr ""

#: src/Payment/PaymentService.php:628
#: src/Payment/PaymentService.php:630
msgid "Failed switching subscriptions, no valid mandate."
msgstr ""

#: src/Payment/PaymentService.php:638
#: src/Payment/PaymentService.php:640
msgid "Order completed internally because of an existing valid mandate at Mollie."
msgstr ""

#: src/Payment/PaymentService.php:779
#: src/Payment/PaymentService.php:781
#: src/Subscription/MollieSepaRecurringGateway.php:126
#: src/Subscription/MollieSubscriptionGateway.php:449
msgid "Awaiting payment confirmation."
msgstr ""

#. translators: Placeholder 1: Payment method title, placeholder 2: payment ID
#: src/Payment/PaymentService.php:799
#: src/Payment/PaymentService.php:801
#: src/Subscription/MollieSepaRecurringGateway.php:135
#: src/Subscription/MollieSubscriptionGateway.php:456
msgid "%1$s payment started (%2$s)."
msgstr ""

#: src/Payment/PaymentService.php:869
#: src/Payment/PaymentService.php:871
msgid "Payment failed due to: Mollie is out of service. Please try again later."
msgstr ""

#: src/Payment/PaymentService.php:894
msgid "Payment failed due to: The payment was declined due to suspected fraud."
msgstr ""

#: src/Payment/RefundLineItemsBuilder.php:126
msgid "Mollie doesn't allow a partial refund of the full amount or quantity of at least one order line. Trying to process this as an amount refund instead."
msgstr ""
Expand Down Expand Up @@ -1149,6 +1158,7 @@ msgstr ""
#: src/PaymentMethods/Ideal.php:17
#: src/PaymentMethods/Ideal.php:55
#: src/PaymentMethods/Kbc.php:16
#: src/PaymentMethods/Kbc.php:60
msgid "Select your bank"
msgstr ""

Expand Down Expand Up @@ -1274,6 +1284,10 @@ msgstr ""
msgid "If you disable this, a dropdown with various KBC/CBC banks will not be shown in the WooCommerce checkout, so users will select a KBC/CBC bank on the Mollie payment page after checkout."
msgstr ""

#: src/PaymentMethods/Kbc.php:54
msgid "This text will be displayed as the first option in the KBC/CBC issuers drop down, if nothing is entered, 'Select your bank' will be shown. Only if the above 'Show KBC/CBC banks dropdown' is enabled."
msgstr ""

#: src/PaymentMethods/Klarna.php:13
msgid "Pay with Klarna"
msgstr ""
Expand Down Expand Up @@ -1838,7 +1852,7 @@ msgid "Initial order status"
msgstr ""

#: src/Settings/General/MollieGeneralSettings.php:292
msgid "Some payment methods take longer than a few hours to complete. The initial order state is then set to '%1$s'. This ensures the order is not cancelled when the setting %2$s is used."
msgid "Some payment methods take longer than a few hours to complete. The initial order state is then set to '%1$s'. This ensures the order is not cancelled when the setting %2$s is used. This will also prevent the order to be canceled when expired."
msgstr ""

#: src/Settings/Page/MollieSettingsPage.php:112
Expand Down
4 changes: 3 additions & 1 deletion mollie-payments-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Mollie Payments for WooCommerce
* Plugin URI: https://www.mollie.com
* Description: Accept payments in WooCommerce with the official Mollie plugin
* Version: 7.4.0
* Version: 7.4.1-beta
* Author: Mollie
* Author URI: https://www.mollie.com
* Requires at least: 5.0
Expand All @@ -19,6 +19,7 @@

namespace Mollie\WooCommerce;

use Mollie\WooCommerce\MerchantCapture\MerchantCaptureModule;
use Mollie\WooCommerce\Vendor\Inpsyde\Modularity\Package;
use Mollie\WooCommerce\Vendor\Inpsyde\Modularity\Properties\PluginProperties;
use Mollie\WooCommerce\Activation\ActivationModule;
Expand Down Expand Up @@ -161,6 +162,7 @@ function initialize()
new GatewayModule(),
new VoucherModule(),
new PaymentModule(),
new MerchantCaptureModule(),
new UninstallModule(),
];
$modules = apply_filters('mollie_wc_plugin_modules', $modules);
Expand Down
Loading
Loading