Daniel Dudzic
e84bc21044
Fix Psalm error
2025-03-07 14:10:02 +01:00
Daniel Dudzic
55f3ff9d3b
Add gateway redirects to new settings UI with highlight support
2025-03-07 14:04:00 +01:00
Emili Castells
37c9a0e3eb
Merge pull request #3193 from woocommerce/PCP-4286-manual-connection-error
...
Manual Connection Error (4286)
2025-03-07 13:57:59 +01:00
Philipp Stracker
f7eeef3821
♻️ Move logging and next-steps into new function
2025-03-07 13:09:42 +01:00
Philipp Stracker
c8b46dfcb7
🧑💻 Add new hook to configure the plugin
...
Adds documentation on the onboarding-flow and provides an integration point for own modules and custom code.
2025-03-07 12:51:59 +01:00
Philipp Stracker
21147ae803
🥅 Additional error handling during merchant login
2025-03-07 12:43:56 +01:00
Daniel Dudzic
f6418665ed
Fix payment method highlighting via todos
2025-03-07 12:25:57 +01:00
Emili Castells
177efd32a3
Merge pull request #3185 from woocommerce/PCP-4279-existing-merchant-disconnecting-via-clear-now-button-should-see-new-ui-afterwards
...
Update the option when clearing the DB (4279)
2025-03-07 11:56:35 +01:00
Daniel Dudzic
c990bbb2f0
Add mapping for the Enable Logging setting
2025-03-07 10:14:02 +01:00
Emili Castells
1c608ac0c2
Merge pull request #3186 from woocommerce/PCP-4276-fastlane-is-broken-on-frontend
...
Hide Fastlane for logged in users in Classic Checkout (4276)
2025-03-06 16:10:21 +01:00
Daniel Dudzic
23d51063d2
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-4276-fastlane-is-broken-on-frontend
2025-03-06 15:35:46 +01:00
Daniel Dudzic
868fdd8a8f
Fix Fastlane regressions
2025-03-06 15:35:36 +01:00
Narek Zakarian
aa391e64fd
Update the option when clearing the DB
...
When clearing the DB from the old settings UI we need to update the option to show the new UI after.
2025-03-06 16:38:57 +04:00
Emili Castells
eb576afc5b
Merge pull request #3180 from woocommerce/PCP-4280-uncaught-type-error-cannot-read-properties-of-null-reading-checked
...
Uncaught type error cannot read properties of null reading checked (4280)
2025-03-06 09:50:08 +01:00
Emili Castells
fad93e3e81
Merge pull request #3182 from woocommerce/PCP-4232-change-onboarding-flags
...
Change onboarding flags (4232)
2025-03-06 09:46:36 +01:00
Emili Castells
f0e99624f0
Merge pull request #3181 from woocommerce/PCP-4273-bcdc-button-is-visible-on-classic-checkout-and-on-express-checkout-even-when-acdc-is-enabled-or-disabled
...
Create a helper for mapping the payment methods (4273)
2025-03-06 09:43:47 +01:00
Philipp Stracker
4a7316b6c1
🧪 Verify the ppcpToken via unit tests
2025-03-05 17:51:51 +01:00
Philipp Stracker
05b4baec15
🐛 Fix the partner-referral payload to pass tests
2025-03-05 17:27:39 +01:00
Philipp Stracker
42986980f6
🧪 Adjust tests to meet PayPal API requirements
2025-03-05 17:26:00 +01:00
Philipp Stracker
8ec852952f
🔀 Merge branch 'trunk’
...
# Conflicts:
# modules/ppcp-settings/resources/js/data/common/hooks.js
2025-03-05 17:01:52 +01:00
Philipp Stracker
84dd8a3dec
👔 Wire up JS onboarding-flags with PHP back-end
2025-03-05 16:57:51 +01:00
Philipp Stracker
57c2287739
👔 Implement the new “use-cards” onboarding flag
2025-03-05 16:52:37 +01:00
Philipp Stracker
ac34da21e9
🧪 Add failing tests to validate the card-flag
2025-03-05 16:51:03 +01:00
Philipp Stracker
b24242bf1c
♻️ Refactor unit test
2025-03-05 16:50:00 +01:00
Philipp Stracker
581c28edac
👔 Implement the new subscription-flag
2025-03-05 16:39:03 +01:00
Philipp Stracker
ef76ddbbfa
🧪 Add failing tests before implementing new flag
2025-03-05 16:38:25 +01:00
Philipp Stracker
5bfb5c320a
♻️ Refactor the unit test
2025-03-05 16:37:46 +01:00
Narek Zakarian
49a5f855b0
Fix the CS
2025-03-05 19:24:33 +04:00
Narek Zakarian
ed5077347e
Fix the Psalm
2025-03-05 19:10:43 +04:00
Philipp Stracker
db1fc28d47
👔 Update the product generation logic
...
Vaulting is only available to business sellers
2025-03-05 16:01:42 +01:00
Philipp Stracker
51fd3b3707
🧪 Update JS tests to meet new requirements
2025-03-05 16:00:52 +01:00
Narek Zakarian
e46039fe63
Unset the BCDC button if merchant is eligible for ACDC.
2025-03-05 19:00:11 +04:00
Narek Zakarian
f83449090b
Allow to filter the disabled funding sources
2025-03-05 18:59:41 +04:00
Philipp Stracker
54046cd307
♻️ Restore correct order of payload creation
...
The token must be added after the last filter, to maintain backwards compatibility!
2025-03-05 15:27:43 +01:00
Philipp Stracker
8cb66440d3
🎨 Reduce nesting-depth of code
2025-03-05 15:23:25 +01:00
Philipp Stracker
29ad91f515
💡 Ad deprecation comment to a property
2025-03-05 15:19:37 +01:00
Philipp Stracker
f014539a95
♻️ Remove “append-token” method
...
We want to build the full payload, including the token, in the `::data()` method.
2025-03-05 15:14:52 +01:00
Philipp Stracker
d1ee75b659
🧪 Update tests to prepare firs refactoring
2025-03-05 15:12:22 +01:00
Philipp Stracker
1c17e7199f
♻️ Replace builder pattern with function arguments
...
Instead of using `with_products()` to generate a new object, we now simply pass the products array to the data() function. This adds a lot more transparency to the process and makes the code easier to read and maintain.
The builder pattern is only implemented in 2 files, and both are rarely used, which makes it an overly complex solution for a simple task (in this project).
2025-03-05 14:59:55 +01:00
Philipp Stracker
112ab6485d
🎨 Fix code style
2025-03-05 14:56:31 +01:00
Philipp Stracker
d1437d1728
🧪 New test case to ensure API data is stable
...
Helps to confirm onboarding data stays correct before changing the API class.
2025-03-05 14:53:57 +01:00
carmenmaymo
334f6a74e2
Add __meta key to allowed in reducer to prevent warning
2025-03-05 13:40:09 +01:00
carmenmaymo
50e83cce5c
Check if sandboxSwitchElement isset to prevent error
2025-03-05 13:39:34 +01:00
Philipp Stracker
81d1925fef
🎨 Consolidate recurring condition into a const
2025-03-05 11:32:35 +01:00
Philipp Stracker
3ff64d841a
⚡ ️ Leverage memoization for selector
2025-03-05 11:32:06 +01:00
Daniel Dudzic
162ec8d0f9
Merge branch 'PCP-4273-bcdc-button-is-visible-on-classic-checkout-and-on-express-checkout-even-when-acdc-is-enabled-or-disabled' of github.com:woocommerce/woocommerce-paypal-payments into PCP-4276-fastlane-is-broken-on-frontend
2025-03-04 17:52:59 +01: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
Daniel Dudzic
e7251780f8
Merge branch 'PCP-4273-bcdc-button-is-visible-on-classic-checkout-and-on-express-checkout-even-when-acdc-is-enabled-or-disabled' of github.com:woocommerce/woocommerce-paypal-payments into PCP-4276-fastlane-is-broken-on-frontend
2025-03-04 15:38:55 +01:00
Narek Zakarian
6e928acfed
Use the new helper for payment methods
2025-03-04 18:33:09 +04:00