Philipp Stracker
09c4f176d0
🐛 Stop enforcing card payments in checkout
...
Removed a filter that reverted settings entered in the legacy UI’s “Disable Alternative Payment Methods” field.
2025-03-18 16:21:34 +01:00
Philipp Stracker
e9b3cc61d2
✨ Add new hook to customize disabled-funding list
2025-03-18 16:18:19 +01:00
Philipp Stracker
ee5237adf5
🐛 Fix the “disable card funding” condition
2025-03-18 16:11:42 +01:00
Philipp Stracker
b5c08e842e
♻️ Make code more readable, resolve one warning
2025-03-18 14:53:49 +01:00
Philipp Stracker
122be6dcd7
🐛 Disable “Credit Card” express payment
2025-03-17 16:59:37 +01:00
Philipp Stracker
a1f8022574
♻️ Pass decision flags to disabled-funding hook
2025-03-17 16:59:01 +01:00
Philipp Stracker
3fead84a70
♻️ Move DCC hooks to separate helper method
2025-03-17 15:23:29 +01:00
Philipp Stracker
3cfbd1002f
♻️ Slightly improve code readability
2025-03-17 14:59:03 +01:00
Philipp Stracker
745c1cc88c
🔥 Remove an unused function argument
2025-03-17 14:58:16 +01:00
Philipp Stracker
f5194c0be4
♻️ Improve code style and readability
2025-03-17 14:45:37 +01:00
Philipp Stracker
b5faa08bfd
✨ Prepare a compat method for legacy UI
2025-03-17 13:07:20 +01:00
Philipp Stracker
704bf7f20c
✨ Allow filtering of card-payment flags
...
These filters allow to add backwards compatibility
2025-03-14 18:56:50 +01:00
Philipp Stracker
42b357d8a6
♻️ Simplify SmartButton code a bit
2025-03-14 18:28:12 +01:00
Philipp Stracker
4803159436
♻️ Refactor the DisabledFundingSource logic
...
Simplify condiitons and code structure, as the old logic was overly complex. Also, ACDC logic is outsourced to the CardFieldsModule via filters and does not need to be considered here.
2025-03-14 18:27:53 +01:00
Philipp Stracker
ed4bb14ad7
🐛 Fix condition in ACDC module
2025-03-14 18:24:12 +01:00
Philipp Stracker
8a42cd610e
💡 Update documentation in comments
2025-03-14 18:16:17 +01:00
Philipp Stracker
73c70e3f38
♻️ Add type-hint for filter
...
The filter is mainly used internally and it must receive an array.
2025-03-14 18:07:21 +01:00
Philipp Stracker
901e7761e1
✨ Consolidate ACDC logic in CardFieldsModule
2025-03-14 18:05:21 +01:00
Philipp Stracker
433e7f7c8b
🔥 Remove redundant checks from SmartButton
...
Most checks are already implemented in the CardPaymentsConfiguration class.
2025-03-14 16:27:01 +01:00
Philipp Stracker
752dae1408
✨ Resolve ACDC eligibility from DccApplies helper
2025-03-14 16:26:20 +01:00
Philipp Stracker
eb26712fb6
🐛 Fix wrong condition!
2025-03-14 16:15:43 +01:00
Philipp Stracker
afb7044b03
🚚 Rename configuration class
...
The class name does not reflect the purpose of the class
2025-03-14 16:15:31 +01:00
Philipp Stracker
29f56a7db8
✨ Lazily resolve card payment configuration
2025-03-14 16:03:27 +01:00
Philipp Stracker
640c324842
✨ Prepare config getters for ACDC/BCDC detection
2025-03-14 15:48:09 +01:00
Philipp Stracker
282d273c96
♻️ Simplify the card payments flag logic
2025-03-14 15:45:57 +01:00
Philipp Stracker
197e3ef0ed
✨ New filter to disable card payments
...
This is a preparation for the planned branded-experience.
2025-03-14 15:39:51 +01:00
Philipp Stracker
b9d7574418
💡 Add/update comments related to #legacy-ui todos
2025-03-14 15:30:41 +01:00
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