Commit graph

10378 commits

Author SHA1 Message Date
Emili Castells
46eeeb0b36
Merge pull request #3607 from woocommerce/PCP-5180-fix-php-8-compatibility-issues-dynamic-properties-and-phpcs-configuration-phpcs
Some checks are pending
CI / PHP 7.4 (push) Waiting to run
CI / PHP 8.0 (push) Waiting to run
CI / PHP 8.1 (push) Waiting to run
CI / PHP 8.2 (push) Waiting to run
CI / PHP 8.3 (push) Waiting to run
CI / PHP 8.4 (push) Waiting to run
PR Playground Demo / prepare_version (push) Waiting to run
PR Playground Demo / build_plugin (push) Blocked by required conditions
PR Playground Demo / create_archive (push) Blocked by required conditions
PR Playground Demo / Comment on PR with Playground details (push) Blocked by required conditions
Refactor PHPCS configuration to be compatible to PHP8 (5180)
2025-08-25 09:21:27 +02:00
Miguel Pérez Pellicer
11ef14b13c Fix psalm false positive
Some checks failed
CI / PHP 7.4 (push) Has been cancelled
CI / PHP 8.0 (push) Has been cancelled
CI / PHP 8.1 (push) Has been cancelled
CI / PHP 8.2 (push) Has been cancelled
CI / PHP 8.3 (push) Has been cancelled
CI / PHP 8.4 (push) Has been cancelled
PR Playground Demo / prepare_version (push) Has been cancelled
PR Playground Demo / build_plugin (push) Has been cancelled
PR Playground Demo / create_archive (push) Has been cancelled
PR Playground Demo / Comment on PR with Playground details (push) Has been cancelled
2025-08-22 17:37:38 +02:00
Miguel Pérez Pellicer
6856448c63 Fixing PHPCS parenthesis issue 2025-08-22 17:22:51 +02:00
Miguel Pérez Pellicer
1c2d7e032a Merge branch 'develop' into PCP-5180-fix-php-8-compatibility-issues-dynamic-properties-and-phpcs-configuration-phpcs 2025-08-22 17:16:02 +02:00
Miguel Pérez Pellicer
d1afbe4a46 Update PHPCS rules 2025-08-22 17:14:58 +02:00
Miguel Pérez Pellicer
2925b73430 Fix empty catch clause 2025-08-22 17:14:43 +02:00
Miguel Pérez Pellicer
224900c6a4 Fix else with simple inner ifs 2025-08-22 17:14:34 +02:00
Miguel Pérez Pellicer
720acca8a5 Fix loose equality ignore comment 2025-08-22 17:14:12 +02:00
Miguel Pérez Pellicer
ddb0ae3b11 Fix not necessary colon 2025-08-22 17:02:09 +02:00
Miguel Pérez Pellicer
4c9ca19ec8 Fix standalone increment issues 2025-08-22 17:02:00 +02:00
Miguel Pérez Pellicer
e2fb54c7a9 Fix grouped "use" statement issues. 2025-08-22 17:01:29 +02:00
Miguel Pérez Pellicer
060a86f5c9 Fix PHPCS spacing issues 2025-08-22 17:00:32 +02:00
Emili Castells
4faef951de
Merge pull request #3606 from woocommerce/PCP-5180-fix-php-8-compatibility-issues-dynamic-properties-and-phpcs-configuration
Some checks failed
CI / PHP 7.4 (push) Has been cancelled
CI / PHP 8.0 (push) Has been cancelled
CI / PHP 8.1 (push) Has been cancelled
CI / PHP 8.2 (push) Has been cancelled
CI / PHP 8.3 (push) Has been cancelled
CI / PHP 8.4 (push) Has been cancelled
PR Playground Demo / prepare_version (push) Has been cancelled
PR Playground Demo / build_plugin (push) Has been cancelled
PR Playground Demo / create_archive (push) Has been cancelled
PR Playground Demo / Comment on PR with Playground details (push) Has been cancelled
Fix Dynamic Property Deprecation Warnings in PHP8 (5180)
2025-08-22 16:41:31 +02:00
Miguel Pérez Pellicer
2ab3b5ef54 Bump woocommerce-sniffs 2025-08-22 16:36:37 +02:00
Miguel Pérez Pellicer
fef445c928 Fix parenthesis PHPCS error 2025-08-22 16:33:44 +02:00
Emili Castells
7453207e17
Merge pull request #3603 from woocommerce/PCP-5047-branded-only-mode-not-entered-when-installing-plugin-via-payments-tab
Remove redundant double action
2025-08-22 11:20:45 +02:00
Miguel Pérez Pellicer
1c2403092b Remove unused import 2025-08-21 17:38:00 +02:00
Miguel Pérez Pellicer
b32d4eec46 Set default values as in WC_Payment_Gateway 2025-08-21 17:37:43 +02:00
Miguel Pérez Pellicer
c92ae6bca2 Fix deprecation messages in api-client module 2025-08-21 17:07:26 +02:00
Miguel Pérez Pellicer
71472084de Fix deprecation messages in tests 2025-08-21 17:06:39 +02:00
Miguel Pérez Pellicer
8aa1948ef9 Fix deprecation messages in wc-gateway module 2025-08-21 17:06:22 +02:00
Narek Zakarian
221786087a
Remove redundant double action 2025-08-20 19:08:12 +04:00
Emili Castells
0535faad10
Merge pull request #3601 from woocommerce/trunk
Merge trunk into develop
2025-08-19 14:35:08 +02:00
Emili Castells
f6b26a33ac
Merge pull request #3589 from woocommerce/PCP-5058-add-fastlane-support-for-au-merchants
Some checks failed
CI / PHP 7.4 (push) Has been cancelled
CI / PHP 8.0 (push) Has been cancelled
CI / PHP 8.1 (push) Has been cancelled
CI / PHP 8.2 (push) Has been cancelled
CI / PHP 8.3 (push) Has been cancelled
CI / PHP 8.4 (push) Has been cancelled
PR Playground Demo / prepare_version (push) Has been cancelled
PR Playground Demo / build_plugin (push) Has been cancelled
PR Playground Demo / create_archive (push) Has been cancelled
PR Playground Demo / Comment on PR with Playground details (push) Has been cancelled
Add Fastlane support for AU/AUD (5058)
2025-08-19 14:15:03 +02:00
Emili Castells
88d7fc86c0
Merge pull request #3599 from woocommerce/PCP-5166-phase-2-add-wc-inbox-item
Phase 2: Settings Migration - Add Woo Inbox item (5166)
2025-08-19 12:47:09 +02:00
Narek Zakarian
4e949b0733
Check if element exists 2025-08-19 14:39:05 +04:00
Narek Zakarian
e3549abd8d
Fix possible duplication 2025-08-19 14:38:32 +04:00
Narek Zakarian
d372194d64
Merge branch 'PCP-5166-phase-2-add-wc-inbox-item' of github.com:woocommerce/woocommerce-paypal-payments into PCP-5166-phase-2-add-wc-inbox-item 2025-08-19 14:04:13 +04:00
Narek Zakarian
b1c1c23d91
Merge branch 'trunk' into PCP-5166-phase-2-add-wc-inbox-item
# Conflicts:
#	modules/ppcp-settings/resources/js/switchSettingsUi.js
2025-08-19 14:02:19 +04:00
Emili Castells
27412ebadd
Merge pull request #3189 from woocommerce/PCP-4235-no-pay-pal-order-id-found-in-order-meta-after-using-proceed-to-pay-pal-on-block-checkout
No PayPal order ID found in order # meta" after using "Proceed to PayPal" on block checkout (4235)
2025-08-19 11:49:48 +02:00
Niklas Gutberlet
e3d8cf0b8a
Merge pull request #3600 from woocommerce/PCP-5158-global-pay-later-messaging-enablement
Auto-enable Pay Later messaging for eligible stores on update (5158)
2025-08-19 11:05:39 +02:00
Emili Castells
184b5d1caa
Merge pull request #3553 from woocommerce/PCP-4976-new-ui-on-goole-pay-popup-no-shipping-methods-visible-when-pay-now-is-enabled
New UI - On Goole Pay popup no shipping methods visible when Pay Now is enabled (4976)
2025-08-19 09:16:39 +02:00
Narek Zakarian
49f4c5b162
Fix the CS 2025-08-18 20:39:56 +04:00
Narek Zakarian
0572f674ca
Add Inbox note about Pay Later messaging 2025-08-18 20:32:46 +04:00
Narek Zakarian
671bfb5e3a
Add ID for "Stay Updated" field to navigate with URL 2025-08-18 20:31:20 +04:00
Narek Zakarian
6ebda200b7
fix: target action buttons by text content due to DOM mutation
Action buttons change/get replaced after click, also there is no way to pass a `class` or any other attribute, making class-based targeting unreliable.
Use text content check to identify "Switch to New Settings" buttons specifically.
2025-08-18 20:30:29 +04:00
Emili Castells
6b84fa00f7
Merge pull request #3595 from woocommerce/PCP-4966-phase-2-change-banner-text
Some checks are pending
CI / PHP 7.4 (push) Waiting to run
CI / PHP 8.0 (push) Waiting to run
CI / PHP 8.1 (push) Waiting to run
CI / PHP 8.2 (push) Waiting to run
CI / PHP 8.3 (push) Waiting to run
CI / PHP 8.4 (push) Waiting to run
PR Playground Demo / prepare_version (push) Waiting to run
PR Playground Demo / build_plugin (push) Blocked by required conditions
PR Playground Demo / create_archive (push) Blocked by required conditions
PR Playground Demo / Comment on PR with Playground details (push) Blocked by required conditions
Phase 2: Settings Migration - Change banner text
2025-08-18 17:22:30 +02:00
Emili Castells
f1433f94e8
Merge pull request #3594 from woocommerce/PCP-4491-bcdc-item-does-not-persist-when-saving-vietnam-also-does-not-show-for-mexico
Use `is_acdc_enabled()` to prevent ACDC interference with BCDC in non-ACDC countries (4491)
2025-08-18 17:18:21 +02:00
Emili Castells Guasch
63426a67f3
Fix phpunit
Some checks failed
CI / PHP 7.4 (push) Has been cancelled
CI / PHP 8.0 (push) Has been cancelled
CI / PHP 8.1 (push) Has been cancelled
CI / PHP 8.2 (push) Has been cancelled
CI / PHP 8.3 (push) Has been cancelled
CI / PHP 8.4 (push) Has been cancelled
PR Playground Demo / prepare_version (push) Has been cancelled
PR Playground Demo / build_plugin (push) Has been cancelled
PR Playground Demo / create_archive (push) Has been cancelled
PR Playground Demo / Comment on PR with Playground details (push) Has been cancelled
2025-08-18 17:13:37 +02:00
Emili Castells Guasch
d84a7dd5bb
Preserve shipping data after emptying the cart 2025-08-18 16:54:06 +02:00
Narek Zakarian
56283c6afb
feat: auto-enable Pay Later messaging for eligible stores on update
Automatically enables Pay Later messaging during plugin updates for stores with
"Stay updated" enabled and Pay Later support in their country.
2025-08-18 17:51:17 +04:00
Narek Zakarian
8d5b2b7930
Fix the cs
Some checks failed
CI / PHP 7.4 (push) Has been cancelled
CI / PHP 8.0 (push) Has been cancelled
CI / PHP 8.1 (push) Has been cancelled
CI / PHP 8.2 (push) Has been cancelled
CI / PHP 8.3 (push) Has been cancelled
CI / PHP 8.4 (push) Has been cancelled
PR Playground Demo / prepare_version (push) Has been cancelled
PR Playground Demo / build_plugin (push) Has been cancelled
PR Playground Demo / create_archive (push) Has been cancelled
PR Playground Demo / Comment on PR with Playground details (push) Has been cancelled
2025-08-18 16:19:16 +04:00
Narek Zakarian
619a2468df
Completely delete the note from DB if is not enabled 2025-08-18 16:12:27 +04:00
Narek Zakarian
ea88086170
Use a better way to delete the note 2025-08-18 15:53:30 +04:00
Narek Zakarian
362cb40e30
Suppress Psalm error 2025-08-18 15:40:50 +04:00
Narek Zakarian
3d7654b2ea
And try/catch if cannot unregister the note 2025-08-18 15:35:29 +04:00
Narek Zakarian
ef86785d43
Remove the unnecessary debug logs
Some checks failed
CI / PHP 7.4 (push) Has been cancelled
CI / PHP 8.0 (push) Has been cancelled
CI / PHP 8.1 (push) Has been cancelled
CI / PHP 8.2 (push) Has been cancelled
CI / PHP 8.3 (push) Has been cancelled
CI / PHP 8.4 (push) Has been cancelled
PR Playground Demo / prepare_version (push) Has been cancelled
PR Playground Demo / build_plugin (push) Has been cancelled
PR Playground Demo / create_archive (push) Has been cancelled
PR Playground Demo / Comment on PR with Playground details (push) Has been cancelled
2025-08-15 20:34:30 +04:00
Narek Zakarian
1179a17ae3
Update the JS logic to also work with new note 2025-08-15 20:33:18 +04:00
Narek Zakarian
628c83b7b9
Add settings page URL to JS config 2025-08-15 20:32:46 +04:00
Narek Zakarian
95e85ec51c
Update the registration logic
When notes are not enabled, we need to unregister/delete them if they were previously registered
2025-08-15 20:32:22 +04:00