Commit graph

5929 commits

Author SHA1 Message Date
Philipp Stracker
c0e3dd7be0
🐛 Hide the PayLater preview when using Vaultig 2024-07-01 14:02:22 +02:00
Philipp Stracker
2e07b0f6c0
🚨 Fix reported CI error 2024-06-28 11:47:05 +02:00
Philipp Stracker
f606b87c85
💄 Complete rewrite of the preview box styling
Original styling designed for one use case (variable number of buttons, floating on the far right side).

Meanwhile we have multiple preview boxes, displaying, a fixed or variable amount of buttons; some preview boxes are also positioned inside a “frame” that requires custom padding and responsive checks.
2024-06-27 19:42:39 +02:00
Philipp Stracker
d1318d7247
Add preview button eligibility check 2024-06-27 18:32:31 +02:00
Philipp Stracker
d2f0cb1c31
♻️ Consolidate preview-HTML in a new setting type 2024-06-27 18:01:06 +02:00
Philipp Stracker
4214821eb1
🔥 Remove unused dependencies
Left overs from PCP-3179
2024-06-25 16:40:05 +02:00
Philipp Stracker
f95bf333df
🐛 Load the preview button logic on Pay Later tab 2024-06-25 16:38:27 +02:00
Emili Castells
167c2c6883
Merge pull request #2368 from woocommerce/release/2.8.1-rc1
Release 2.8.1-rc1
2024-06-25 15:00:18 +02:00
Emili Castells Guasch
cade517527 Update changelog 2024-06-25 14:48:39 +02:00
Emili Castells Guasch
be0eaca175 Bump 2.8.1-rc1 version 2024-06-25 14:13:10 +02:00
Emili Castells
fb4f4cb753
Merge pull request #2360 from woocommerce/PCP-3289-could-not-retrieve-order-error-in-package-tracking-metabox-breaking-wc-order
Don't render tracking metaBox if can't retrieve PayPal order (3289)
2024-06-25 14:01:00 +02:00
Emili Castells
b40b1d2056
Merge pull request #2362 from woocommerce/PCP-3300-server-500-error-when-adding-to-cart-1-product-if-pcp-is-activated
2.8.1-alpha1 - Server 500 error when adding to cart >1 product if PCP is activated (3300)
2024-06-20 17:02:39 +02:00
Emili Castells Guasch
67074a6c9f Ensure subscriptions mode setting exist 2024-06-20 15:07:34 +02:00
Emili Castells Guasch
1d0d4d21ad Ensure subscriptions mode setting exist 2024-06-20 15:06:35 +02:00
Narek Zakarian
13b2f30edc
Improve docs 2024-06-19 20:23:51 +04:00
Narek Zakarian
5fbfba61c6
Fix the coding styles 2024-06-19 20:17:02 +04:00
Narek Zakarian
17030cae12
Don't render tracking metaBox if can't retrieve PayPal order 2024-06-19 20:02:31 +04:00
Emili Castells
ba77510e2e
Merge pull request #2346 from woocommerce/PCP-3181-place-order-button-not-visible-with-advanced-card-processing
Add filter for adding more contexts in can_render_dcc checker
2024-06-17 11:43:56 +02:00
Emili Castells
ac3b99d776
Merge pull request #2342 from woocommerce/PCP-3128-fastlane-gateway-appear-in-unfunctional-state-if-pay-pal-checkout-button-location-is-disabled
AXO: Disable Fastlane when ACDC is disabled (3128)
2024-06-17 09:31:31 +02:00
Emili Castells
f5803f1c99
Merge pull request #2325 from woocommerce/PCP-3179-apple-pay-google-pay-buttons-no-longer-visible-in-standard-payments-button-previews-after-moving-them-to-advanced-card-processing-tab
Apple Pay & Google Pay buttons no longer visible in Standard Payments button previews after moving them to Advanced Card Processing tab (3179)
2024-06-17 09:30:47 +02:00
Philipp Stracker
f759ca4573
🐛 Force-display the preview button after render()
Some tests indicate, that the `ppcp-hidden` and `ppcp-enabled` events are not always triggered on some sites. As the preview button is refreshed during those events, it would stay hidden on those sites.

Adding a delayed DOM show() call solves the issue in a slightly less-elegant way.
2024-06-14 19:19:55 +02:00
Emili Castells Guasch
f9bcc41c29 Add filter to add more contexts in can render dcc checker 2024-06-14 17:34:57 +02:00
Philipp Stracker
c0c4d8d514
🐛 Fix hidden preview buttons in Standard Payments
Addresses an issue when toggling the “Customize per location” checkbox multiple times.
2024-06-14 15:50:17 +02:00
Emili Castells
d8bba13716
Merge pull request #2320 from woocommerce/PCP-3215-only-restrict-duplicate-subscription-products-if-subscriptions-mode-active
Only prevent multiple subscription products in cart if PayPal Subscription API is active (3215)
2024-06-14 14:57:59 +02:00
Emili Castells
3e6be85bb3
Merge pull request #2308 from woocommerce/PCP-223-gateway-description-not-translatable-with-wpml
Add WPML compatibility to the settings (223)
2024-06-14 14:56:54 +02:00
Emili Castells
0f6e7154cf
Merge pull request #2283 from woocommerce/PCP-3171-several-issues-on-backwpup-com
id_token for guest users (3264)
2024-06-14 14:40:16 +02:00
Emili Castells
faac6cffae
Merge pull request #2335 from woocommerce/PCP-3252-fastlane-hide-debug-console-output-unless-wp-debug-is-active
AXO: Disable logging when WP_DEBUG is set to false (3252)
2024-06-14 14:36:48 +02:00
Emili Castells Guasch
39b6f8a1aa Merge branch 'trunk' into PCP-3171-several-issues-on-backwpup-com 2024-06-14 12:43:15 +02:00
Daniel Dudzic
4b5aeaab71
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3128-fastlane-gateway-appear-in-unfunctional-state-if-pay-pal-checkout-button-location-is-disabled 2024-06-14 11:41:24 +02:00
Emili Castells
d42dc94caa
Merge pull request #2340 from woocommerce/PCP-3256-remove-fastlane-from-pay-for-order-endpoint
AXO: Disable Fastlane for Order Pay endpoint (3256)
2024-06-14 09:57:15 +02:00
Daniel Dudzic
ce2d18a518
AXO: Disable Fastlane when ACDC is disabled 2024-06-13 18:52:04 +02:00
Philipp Stracker
e748ef74ba
🩹 Fix incorrect usage of #-prefix
Only properties can be declared as private using `#`. For functions, this is not supported yet, using the private-prefix here is unreliable.
2024-06-13 14:03:21 +02:00
Philipp Stracker
f5e67c4810
🐛 Refresh all preview buttons on the screen
When multiple preview-button-blocks for the same button were present on the page, not all of them did update the button.
2024-06-13 14:01:47 +02:00
Philipp Stracker
238adedcad
🐛 Fix the condition to inject the settings JS
Switched to using an existing DI service to determine if the current page requires the “gateway-settings” asset files.
2024-06-13 11:35:05 +02:00
Daniel Dudzic
474759d161
Fix PHPCS errors 2024-06-13 11:27:05 +02:00
Daniel Dudzic
ef0adeb2dc
AXO: Disable Fastlane on Order Pay endpoint 2024-06-13 11:16:38 +02:00
Daniel Dudzic
8f99aa5f9e
Hide PayPal Insights when WP Debug is set to false. Also allow logging when WP Debug is set to false. 2024-06-12 22:30:33 +02:00
Daniel Dudzic
b4e35e2959
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3252-fastlane-hide-debug-console-output-unless-wp-debug-is-active 2024-06-12 18:40:33 +02:00
Philipp Stracker
c23129cb91
🐛 Render preview when enabling the button
Before this, the “is enabled” checkbox was not observed; enabling it did not cause a preview button to render, and required changing any other form field that was linked to the button

Also start to extract some logic to a new helper file.
2024-06-12 18:12:07 +02:00
Philipp Stracker
6ee4a40e18
🎨 Remove unnecessary condition 2024-06-12 15:47:31 +02:00
Philipp Stracker
f3f6765ac3
🐛 Hide disabled APM buttons in Standard Payments 2024-06-12 15:45:54 +02:00
Philipp Stracker
874ebbc7a0
🎨 Minor: Apply WP Code Style
- Consistent quote-style
- Insert missing semicolons in JS
- Fix some whitespaces
2024-06-12 15:31:33 +02:00
Philipp Stracker
bc57fdcd6a
🦺 Add new console error to help us debug issues
This new console error should help us identify cache-related issues faster
2024-06-12 11:31:16 +02:00
Philipp Stracker
cea292684b
🎨 Minor code structure changes 2024-06-12 11:27:59 +02:00
Emili Castells
f53976e9ea
Merge pull request #2327 from woocommerce/PCP-3207-filter-to-disable-messaging-configurator-causes-fatal-error
Fix the fatal error when the ppcp-paylater-configurator module is disabled (3207)
2024-06-12 10:37:20 +02:00
Emili Castells
c161d03e7b
Merge pull request #2326 from woocommerce/PCP-3208-fastlane-add-call-to-action-for-unauthenticated-user
AXO: Add a Continue button next to the email input (3208)
2024-06-12 09:47:50 +02:00
Daniel Dudzic
0529be62d1
Fix PHPCS errors 2024-06-12 09:23:57 +02:00
Daniel Dudzic
78ad22f783
Fix the CI error with WP_DEBUG not being defined 2024-06-12 09:14:34 +02:00
Daniel Dudzic
ff2d4ba871
Fix CI error 2024-06-12 09:07:09 +02:00
Daniel Dudzic
8a30af9945
Add additional validation 2024-06-11 17:44:01 +02:00