Commit graph

249 commits

Author SHA1 Message Date
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
Narek Zakarian
ee9ac2fd21
Revert the callable part 2025-02-21 13:21:49 +04:00
Narek Zakarian
7254771eaf
Adjust the settings map helper to use the new class 2025-02-21 13:21:06 +04:00
Narek Zakarian
d5a34aa5af
Add the appropriate services to support the general settings map helper 2025-02-21 13:16:26 +04:00
Narek Zakarian
6042cdd262
Create a helper for mapping the general settings 2025-02-21 13:10:29 +04:00
Narek Zakarian
7abadd1fd6
Revert the change 2025-02-21 13:04:38 +04:00
Narek Zakarian
2aac7b9741
Create the map helper for general settings 2025-02-21 13:01:11 +04:00
Philipp Stracker
b093abe4d2
🔧 Add two hardcoded values to SettingsMap 2025-02-20 14:01:44 +01:00
Philipp Stracker
7b12166b5c
Allow callbacks in SettingsMap to resolve values 2025-02-20 14:01:06 +01:00
Narek Zakarian
127fe41e81
Use the subscriptions helper in setting helper. 2025-02-20 13:48:17 +04:00
Narek Zakarian
a16ad7fef5
improve the wording. 2025-02-20 13:38:35 +04:00
Narek Zakarian
834f1e6579
Fix the cs 2025-02-20 13:32:01 +04:00
Narek Zakarian
66e52c9ad0
Implement the subscription map helper 2025-02-20 13:31:25 +04:00
Narek Zakarian
be071decfb
Use the subscription map helper 2025-02-20 13:31:17 +04:00
Narek Zakarian
07db58d663
Add service for the subscription map helper 2025-02-20 13:05:33 +04:00
Narek Zakarian
9d596cbc2a
Prepare the Subscription Map Helper 2025-02-19 19:17:59 +04:00
Narek Zakarian
c1b1f47bbe
Fix the "Pay Now Experience" mapping value 2025-02-17 17:52:48 +04:00
Narek Zakarian
a71f687bcf
Map the "Pay Now Experience" 2025-02-17 17:36:20 +04:00
Narek Zakarian
0cdb46dfa6
Map the vaulting for the Credit and Debit Cards 2025-02-17 17:34:41 +04:00
Narek Zakarian
228861ee89
Map the "vaulting" 2025-02-17 17:33:53 +04:00
Narek Zakarian
3e5f151bbb
Map the "Order intent" 2025-02-17 17:31:56 +04:00
Narek Zakarian
7a03bda2ac
Map the "Invoice prefix" 2025-02-17 17:18:10 +04:00
Emili Castells
27ceb6a3a9
Merge pull request #3109 from woocommerce/PCP-4212-connect-settings-connect-the-pay-pal-settings-with-the-frontend
Connect the PayPal settings with the frontend (4212)
2025-02-14 11:57:14 +01:00