Emili Castells
a6324b4999
Merge pull request #3491 from woocommerce/PCP-4854-phase-1-opt-in-via-banner
...
UX Legacy Migration: phase 1 opt in via banner (4854)
2025-07-07 08:56:59 +02:00
Daniel Dudzic
275cdd3981
🐛 Fix three_d_secure check logic and prevent the undefined array key warning
2025-06-25 18:06:37 +02:00
Narek Zakarian
ee9bb113bc
Fix the 'threeDSecure' migration
2025-06-25 18:31:36 +04:00
Emili Castells
55bb710eb0
Merge pull request #3340 from woocommerce/PCP-4521-extract-3-ds-setting-from-acdc-payment-method
...
Move 3D Secure settings from Payment Methods to Settings tab (4521)
2025-06-20 14:24:37 +02:00
Daniel Dudzic
df8709aee9
♻️ Refactor 3DS migration to run only when needed
2025-06-10 14:58:47 +02:00
Daniel Dudzic
3443cd0ecf
🧹 Fix PHPCS linting issues
2025-06-10 12:56:55 +02:00
Daniel Dudzic
9cde0ae11b
🔄 Handle the Three D Secure setting migration in the options and remove legacy references
2025-06-10 12:52:58 +02:00
Alex P.
5c5929a67b
Fix psalm
2025-05-29 19:56:58 +03:00
Alex P.
da45fb1baf
Remove ApplicationContext
2025-05-29 19:49:43 +03:00
Daniel Dudzic
1ed7713d15
🎨 Fix psalm error
2025-04-24 00:47:33 +02:00
Daniel Dudzic
b99b14d71f
🎨 Add type annotation
2025-04-23 18:42:26 +02:00
Daniel Dudzic
7c61dc1d0f
🎨 Fix code formatting
2025-04-23 18:23:42 +02:00
Daniel Dudzic
6a904e1b1d
♻️ Move 3D Secure settings from Payment Methods to Settings tab
2025-04-23 14:09:50 +02:00
Narek Zakarian
c8c7b3cfc2
Pass the payment settings model to a helper
2025-03-24 18:22:20 +04:00
Narek Zakarian
70cf8214a5
Add mapping for the 3d_secure_contingency
setting
2025-03-24 18:21:55 +04:00
Narek Zakarian
4afe088bfc
Create a map of new to old setting values
2025-03-24 18:21:21 +04:00
Philipp Stracker
fb27373c1b
🐛 Fix “use-ACDC” flag in legacy UI
...
A new filter adds backwards compatibility by overwriting the ACDC decision with a settings choice.
2025-03-18 16:31:38 +01:00
Philipp Stracker
b5faa08bfd
✨ Prepare a compat method for legacy UI
2025-03-17 13:07:20 +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
0afe4861bb
Connect legacy vault_enabled setting to new save_paypal_and_venmo
2025-03-07 15:44:55 +01:00
Daniel Dudzic
c990bbb2f0
Add mapping for the Enable Logging setting
2025-03-07 10:14:02 +01:00
Narek Zakarian
49a5f855b0
Fix the CS
2025-03-05 19:24:33 +04:00
Narek Zakarian
878bf393d7
Directly check if gateway is enabled
2025-03-04 20:34:17 +04:00
Narek Zakarian
ced161559f
Directly check if gateway is enabled
2025-03-04 20:33:57 +04:00
Narek Zakarian
6e928acfed
Use the new helper for payment methods
2025-03-04 18:33:09 +04:00
Narek Zakarian
ddb80b5a89
Add services for a new map helper
2025-03-04 18:32:54 +04:00
Narek Zakarian
8e0bc6f2d2
Create a helper for mapping the payment methods
2025-03-04 18:32:20 +04:00
Narek Zakarian
7dc2fef1da
If the new settings module is not enabled, return null
...
This will force the `Settings` old class to always fallback to the old settings value
2025-02-28 19:48:03 +04:00
Narek Zakarian
c8d9a142ea
Pass a boolean to the map to check if the new settings module is enabled
2025-02-28 19:47:03 +04:00
Narek Zakarian
cf30631c19
Fix the tests
2025-02-28 16:24:41 +04:00
Narek Zakarian
88c0ce6ee3
Fix the tests
2025-02-28 16:10:22 +04:00
Narek Zakarian
860372fb7c
Use the constants from the gateways instead of hard-coding the names
2025-02-28 15:53:32 +04:00
Narek Zakarian
ca870ecf6f
Use the Payment setting model to check if the gateway is enabled.
...
Once the new settings module is permanently enabled, this model can be passed as a dependency to the styling helper class. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-28 15:49:42 +04:00
Narek Zakarian
447666f9e0
Use the Payment setting model to check if the gateway is enabled.
...
Once the new settings module is permanently enabled, this model can be passed as a dependency to the styling helper class. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-27 19:26:42 +04:00
Narek Zakarian
e913f60885
Use the Payment setting model to check if the venmo gateway is enabled.
...
Once the new settings module is permanently enabled, this model can be passed as a dependency to the styling helper class. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-27 18:33:48 +04:00
Narek Zakarian
b74cfba72b
Pass the PaymentSettings model instance to styling helper.
...
Once the new settings module is permanently enabled, this model can be passed as a dependency to the styling helper class. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-27 18:18:37 +04:00
Narek Zakarian
e83dba1506
Pass the PaymentSettings model instance.
...
We need to pass the PaymentSettings model instance to use it in some helpers. Once the new settings module is permanently enabled, this model can be passed as a dependency to the appropriate helper classes. For now, we must pass it this way to avoid errors when the new settings module is disabled.
2025-02-27 18:17:37 +04:00
Narek Zakarian
4a3aaff0eb
Fix the naming of google and apple pay buttons mapping
2025-02-26 18:52:04 +04:00
Narek Zakarian
7e1277e4ff
Fix the name of 'pay later' check for mapped locations
2025-02-26 17:00:55 +04:00
Narek Zakarian
26bc7ce02c
Use the new button enabled mapping function.
2025-02-26 17:00:10 +04:00
Narek Zakarian
48898edcd9
Map the pay_later_button_enabled
2025-02-26 16:59:29 +04:00
Narek Zakarian
0a0603af51
Add predefined list of button names to check for enabled/disabled state
2025-02-26 16:59:09 +04:00
Narek Zakarian
b2d870bdca
Abstract the method to check if given button is enabled
...
Now any button name (form predefined list) can be passed to a mapping function to check if it is enabled for current context
2025-02-26 16:58:17 +04:00
Narek Zakarian
6cee316be4
Remove the mapping and just add a check
2025-02-24 15:29:40 +04:00
Narek Zakarian
957c8273f8
Map the 'block-editor' location to fix the warning
2025-02-24 15:06:08 +04:00
Narek Zakarian
6ca5425aa7
Map the merchant_email
2025-02-21 19:22:35 +04:00
Narek Zakarian
07eb55eac8
Fix the cs
2025-02-21 15:49:03 +04:00
Narek Zakarian
2a30ee0b70
Merge branch 'trunk' into PCP-4236-default-gateways-status-wrong-after-onboarding
...
# Conflicts:
# modules/ppcp-compat/services.php
# modules/ppcp-compat/src/Settings/SettingsMapHelper.php
2025-02-21 15:40:10 +04:00