Commit graph

7198 commits

Author SHA1 Message Date
Philipp Stracker
359a8df3f1
💄 Finally fix the connection button colors 2025-03-24 16:21:41 +01:00
Philipp Stracker
9ec98fe5f8
🧑‍💻 Add a browse flag to simulate branded-only
Committed, as it’s helful for initial QA and client testing. Will be removed in the future
2025-03-24 16:09:31 +01:00
Philipp Stracker
10e5588e06
♻️ More modular icon configuration
The new system matches the increasing complexity of the icon conditions and is easy to extend without bloating the payment configuration
2025-03-24 16:08:25 +01:00
Daniel Dudzic
5a0adf8ac8
Simplify the new UI check for the onboarding.js file 2025-03-24 15:43:17 +01:00
Philipp Stracker
61f24f7f84
Implement a “own brand only” flag
The flag is not used yet, but available to relevant components
2025-03-24 15:04:48 +01:00
Daniel Dudzic
8c6761159b
Fix Controlls typo 2025-03-24 14:53:14 +01:00
Philipp Stracker
6021ef6db2
♻️ Move icon-selection to the payment-config hook
Reason: Business logic (icon choice) should be kept in a single place, instead of letting the rendering component decide which icons to use.
2025-03-24 14:52:31 +01:00
Philipp Stracker
822086e64c
🐛 Fix js error caused by frozen object 2025-03-24 14:51:37 +01:00
Philipp Stracker
68b5999bc1
🚚 Unrelated: Move component to correct folder 2025-03-24 14:45:41 +01:00
Daniel Dudzic
61a265a1a4
Fix another batch of typos 2025-03-24 14:27:35 +01:00
Daniel Dudzic
9fb76a966a
Fix another batch of typos 2025-03-24 14:18:58 +01:00
Daniel Dudzic
1f83cbc108
Fix another batch of typos 2025-03-24 14:14:32 +01:00
Daniel Dudzic
a0a7d042b4
Fix first batch of typos 2025-03-24 14:09:19 +01:00
Emili Castells
3042e3d6b8
Merge pull request #3046 from woocommerce/PCP-4110-incorrect-subscription-cancellation-handling-with-pay-pal-subscriptions
incorrect subscription cancellation handling with pay pal subscriptions (4110)
2025-03-24 11:32:01 +01:00
Emili Castells
aa01b4bd55
Merge pull request #3258 from woocommerce/PCP-4389-fastlane-typo-in-welcome-screen-new-ui
Fix Fastlane typo (4389)
2025-03-24 11:30:57 +01:00
Emili Castells
5f8c2280fc
Merge pull request #3250 from woocommerce/PCP-4340-acdc-not-defaulting-on-for-acdc-eligible-user-after-onboarding
Fix post onboarding payment methods frontend/backend sync (4340)
2025-03-24 11:28:43 +01:00
Daniel Dudzic
fce19d20cf
Fix Fastlane typo 2025-03-24 10:39:32 +01:00
Emili Castells
c527c44f6c
Merge pull request #3195 from woocommerce/PCP-4219-security-deposits-plugin-causing-pay-pal-button-to-be-grayed-out-on-product-page
Security Deposits Plugin Causing PayPal Button to Be Grayed Out on Product Page (4219)
2025-03-24 09:49:31 +01:00
Emili Castells
3b48f8a70d
Merge pull request #3242 from woocommerce/PCP-4385-failed-to-fetch-onboarding-url-error-when-onboarding-with-no-rt-merchant-and-selecting-subscriptions-product
Do not add the capabilities if is not eligible for ACDC (4385)
2025-03-24 09:31:30 +01:00
Daniel Hüsken
64aefee245
Fix phpcs 2025-03-24 08:38:47 +01:00
Daniel Hüsken
8e088dc022
Fix changed environment container 2025-03-24 08:30:44 +01:00
Daniel Hüsken
35d6c7e913
Merge branch 'refs/heads/trunk' into PCP-4110-incorrect-subscription-cancellation-handling-with-pay-pal-subscriptions 2025-03-24 07:52:14 +01:00
Philipp Stracker
ba122714d8
♻️ Use the new Enum to access const values 2025-03-21 18:16:17 +01:00
Philipp Stracker
6c004cb283
🔀 Merge branch ‘temp/branded-only' 2025-03-21 18:04:17 +01:00
Philipp Stracker
c4a1217e6a
🔀 Merge branch ‘trunk' 2025-03-21 18:03:42 +01:00
Philipp Stracker
35d8233e06
🔒️ Enforce the “do not update” rule
Per definition, an installation path cannot be changed after it’s set. This change enforces the rule on the lowest level
2025-03-21 18:02:51 +01:00
Philipp Stracker
afbc79c0c5
Serve the installation path with the WooSettings
This change correctly populates the modified Redux reducer
2025-03-21 18:01:54 +01:00
Philipp Stracker
f96d52a3f9
💡 Add a todo-comment for later inspection 2025-03-21 17:54:12 +01:00
Philipp Stracker
e45ec0136c
🔒️ Remove “installation_path” from settings map
All values in this map can potentially be modifed via a REST call. The “installation_path” must be strictly kept read-only
2025-03-21 17:53:13 +01:00
Philipp Stracker
9aad1274bc
♻️ Move the branded-only-flag into wooSettings
The flag must not appear in the “defaultPersistent” object, as this would allow users to modify the state when saving settings!

Instead, the installation path moved into the read-only object “wooSettings”
2025-03-21 17:51:19 +01:00
Philipp Stracker
d1adbf7b46
♻️ Use the enum in the ActivationDetector 2025-03-21 17:23:02 +01:00
Philipp Stracker
480f3e1893
Add new enum for installation paths 2025-03-21 17:21:24 +01:00
Philipp Stracker
c1252b5390
💡 Fix typos in unrelated comments 2025-03-21 17:20:45 +01:00
Emili Castells
51a2f4d4f9
Merge pull request #3067 from woocommerce/PCP-4122-unfortunately-your-credit-card-details-are-not-valid-shown-with-actually-valid-card-during-checkout-with-invalid-postcode
Unfortunately, your credit card details are not valid" shown with actually valid card during checkout with invalid postcode (4122)
2025-03-21 17:17:27 +01:00
Emili Castells
93aa4b73f4
Merge pull request #3240 from woocommerce/PCP-4393-minor-features-related-scrolling-and-highlighting-fixes
Settings UI: Add Minor Features scrolling/highlight fixes (4393)
2025-03-21 17:16:46 +01:00
Narek Zakarian
8490972513
Check if the headers exist in the request 2025-03-21 19:09:37 +04:00
Narek Zakarian
2616974c12
Restrict the BN code to return only the white listed values 2025-03-21 19:06:09 +04:00
Narek Zakarian
95af76b8fb
Remove the mapping service and path the array directly 2025-03-21 19:02:19 +04:00
Narek Zakarian
8ea71593d6
Adjust the mapping of installation paths to BN codes 2025-03-21 18:59:08 +04:00
Narek Zakarian
ce5039e9c8
Init the BN code 2025-03-21 18:36:33 +04:00
Narek Zakarian
9d3e5c9690
the 'PayPal-Partner-Attribution-Id' is not added from here anymore 2025-03-21 18:09:50 +04:00
Narek Zakarian
fefcd25a48
Use a filter that ensures that all API requests include the appropriate BN code retrieved from the PartnerAttribution helper.
Using this approach avoids the need for extensive refactoring of existing classes that use the `RequestTrait`.
2025-03-21 18:09:49 +04:00
Narek Zakarian
00c630ea5e
Revert the changes. WIll use the filter to add it everywhere at once 2025-03-21 18:09:49 +04:00
Narek Zakarian
c781841265
BillingAgreementsEndpoint: Add the 'PayPal-Partner-Attribution-Id' header 2025-03-21 18:09:49 +04:00
Narek Zakarian
0aecc5aa32
Pass the partner attribution helper to a smart button 2025-03-21 18:09:29 +04:00
Narek Zakarian
431a8e5cf7
Rebase 2025-03-21 18:06:50 +04:00
Narek Zakarian
55c19d6173
🚨 Fix the test 2025-03-21 18:03:58 +04:00
Narek Zakarian
5a41260954
Fix the CS 2025-03-21 18:03:58 +04:00
Narek Zakarian
2066bb4968
🔨 🔨 Refactor: Use only the core-profiler path, otherwise use the default BN code. 2025-03-21 18:03:58 +04:00
Narek Zakarian
8e837458f7
Create a class for partner attribution.
This class handles the retrieval and persistence of the BN (Build Notation) Code,which is used to track and attribute transactions for PayPal partner integrations.

The BN Code is set once and remains persistent, even after disconnecting or uninstalling the plugin. It is determined based on the installation path and stored as a WordPress option.
2025-03-21 18:03:57 +04:00