Commit graph

9162 commits

Author SHA1 Message Date
Philipp Stracker
4afa8dd4dd
💡 Improve comments for connection-services 2025-03-14 15:14:41 +01:00
Philipp Stracker
a693ca4455
Add legacy service ‘settings.connection-state’
The service is required for DCC configuration (in legacy and new UI mode)
2025-03-14 15:14:12 +01:00
Philipp Stracker
d4857102fe
♻️ Apply more suitable DI service name 2025-03-14 12:18:05 +01:00
Philipp Stracker
cad5378089
💡 Update the class documentation 2025-03-14 12:13:41 +01:00
Philipp Stracker
a7f736c52c
🧪 Update existing unit test cases 2025-03-14 11:59:52 +01:00
Philipp Stracker
cc2e940601
🔀 Merge branch 'trunk' 2025-03-14 11:45:11 +01:00
Philipp Stracker
b7d9e2c8fd
🎨 Apply phpcs styles 2025-03-14 11:43:33 +01:00
Philipp Stracker
a39edd0225
♻️ Remove an unused param to avoid confusion
The DCC status is not defered from the Settings instance, but from the specific DCCGatewayConfiguration service.
2025-03-14 11:42:41 +01:00
Philipp Stracker
16b4e235f2
💡 Fix typo 2025-03-14 11:39:34 +01:00
Philipp Stracker
ad0085ee8f
💡 Document DI service name 2025-03-14 11:38:56 +01:00
Philipp Stracker
31686a6214
Early exit if merchant is not onboarded 2025-03-14 11:38:39 +01:00
Philipp Stracker
0d54c84e66
♻️ Refactor DCCGatewayConfiguration “reset” logic 2025-03-14 11:33:28 +01:00
Philipp Stracker
0d69dff0f4
♻️ Use DCCGatewayConfiguration service 2025-03-14 11:13:44 +01:00
Philipp Stracker
60bdf6dea1
💡 Document DI service names 2025-03-14 10:57:40 +01:00
Philipp Stracker
532543f490
♻️ Use the DCCGatewayConfiguration service 2025-03-13 18:04:01 +01:00
Emili Castells
4e0e58c7b5
Merge pull request #3216 from woocommerce/PCP-4346-pay-pal-button-for-vaulting-subscription-in-block-cart-page-does-not-work
PayPal button for vaulting subscription in block cart page does not work (4346)
2025-03-13 17:44:45 +01:00
Emili Castells
220cb44c50
Merge pull request #3214 from woocommerce/PCP-4341-paylater-in-the-disable-funding-array-even-though-backend-has-it-enabled
Fix the mapping for the pay later button. (4341)
2025-03-13 17:44:31 +01:00
Emili Castells
98534f1922
Merge pull request #3213 from woocommerce/PCP-4301-bump-minimum-required-wc-version
Update plugin header, changelog and readme to 3.0.0
2025-03-13 17:44:16 +01:00
Emili Castells
580625fb92
Merge pull request #3211 from woocommerce/PCP-4303-hide-non-pay-pal-payment-methods-in-payments-tab-when-disabled-in-payment-methods-tab
Hide the gateways if they are not enabled (4303)
2025-03-13 17:42:58 +01:00
Emili Castells
96ef4785e7
Merge pull request #3207 from woocommerce/PCP-4239-subscriptions-and-save-payment-methods
Subscriptions and "Save Payment Methods"
2025-03-13 17:42:25 +01:00
Emili Castells Guasch
e1baf6d531 Remove enforcePaymentMethodForCart method, the problem it solved is already fixed in wc 2025-03-13 17:29:42 +01:00
Narek Zakarian
19a923a6a6
Use the new method for pay later button mapping 2025-03-13 17:46:34 +04:00
Narek Zakarian
3629b2b728
The 'pay-later' here is redundant. 2025-03-13 17:46:16 +04:00
Narek Zakarian
d8a688da14
Create a new method for mapping the pay later button. 2025-03-13 17:45:42 +04:00
Emili Castells Guasch
796a81eaa3 Update plugin header, changelog and readme 2025-03-13 14:18:18 +01:00
Emili Castells Guasch
3e2c225c5f Bump minimum required WC version 2025-03-13 14:01:28 +01:00
Emili Castells
b3135764b1
Merge pull request #3205 from woocommerce/PCP-4283-pay-pal-button-for-wc-subscriptions-product
PayPal button for WC Subscriptions product  (4283)
2025-03-13 12:51:27 +01:00
Emili Castells
e8d78a00f3
Merge pull request #3212 from woocommerce/PCP-4296-isu-incorrect-country
Modify config defaults to better accommodate country-specific requirements (4296)
2025-03-13 12:27:56 +01:00
Daniel Dudzic
a707dd629f
Remove redundant GB specific extendedMethods definition 2025-03-13 10:31:09 +01:00
Daniel Dudzic
22cd59d0f5
Modify config defaults to better accommodate country-specific requirements 2025-03-13 10:25:25 +01:00
Narek Zakarian
972b50167b
Fix the CS 2025-03-13 13:00:54 +04:00
Narek Zakarian
17f610ce77
Hide the gateways if they are not enabled. 2025-03-13 12:49:21 +04:00
Emili Castells
871897811c
Merge pull request #3208 from woocommerce/refactor/e2e-php-test-suite
Refactor/e2e php test suite to integration
2025-03-13 09:24:14 +01:00
Philipp Stracker
ca846e7678
💡 Add a few comments 2025-03-12 18:39:12 +01:00
Philipp Stracker
201f5ab20c
♻️ Implement DCCGatewayConfiguration service
Instead of fixing incorrect conditions in different files, we want to use a single source of truth for the DCC status
2025-03-12 18:31:11 +01:00
Emili Castells Guasch
129eec6baa Rename e2e to integration 2025-03-12 18:14:01 +01:00
Emili Castells Guasch
78ba28c04b Reduce php and wc matrix version 2025-03-12 18:00:00 +01:00
Emili Castells Guasch
280dc71871 Fix settings test 2025-03-12 17:57:52 +01:00
Emili Castells Guasch
869670a6c0 Use wc and woosubscriptions apis to create the subscription 2025-03-12 17:46:20 +01:00
Philipp Stracker
de46e4ed08
♻️ Improve SDK component inject logic
Just make the filter callback more readable, still no change in the plugin logic
2025-03-12 17:33:44 +01:00
carmenmaymo
ebb1889b8e
If setup has subs then enable venmo and save cards 2025-03-12 17:23:32 +01:00
Philipp Stracker
791a5d33da
♻️ Make DCC check clearer in SmartButton class
Done during debugging to better understand the data flow, does not change/solve anything
2025-03-12 17:04:38 +01:00
Philipp Stracker
11f91eed62
♻️ Refactor the DisabledFundingSources class
Split the code into small, documented functions to make the decision flow and data-relationship clearer
2025-03-12 15:58:39 +01:00
Philipp Stracker
3a652f30b5
🎨 Fix phpcs suggestions 2025-03-12 14:53:13 +01:00
Philipp Stracker
a5ee2e29d5
♻️ Never disable funding source “paypal”
Consolidate funding source logic into the responsible class
2025-03-12 14:36:41 +01:00
Philipp Stracker
f178636951
💡 Fix typo in comment 2025-03-12 14:21:29 +01:00
Philipp Stracker
e2fbeffcdd
🔥 Remove incorrect filter
The filter solved a wrong problem: It only hides the BCDC button, while the solution would be to disable the entire BCDC gateway.
2025-03-12 13:42:24 +01:00
Philipp Stracker
6da8988e0a
♻️ Improve readability and code structure 2025-03-12 12:31:28 +01:00
Philipp Stracker
1938f6b6ed
🎨 Make condition easier to read 2025-03-12 11:48:15 +01:00
Emili Castells Guasch
a31bed6802 Merge branch 'trunk' into PCP-4283-pay-pal-button-for-wc-subscriptions-product 2025-03-12 11:38:39 +01:00