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
Emili Castells Guasch
610db964f7
Add first test
2024-06-13 21:05:06 +02:00
Emili Castells Guasch
ad2a39e10a
Add dom testing library
2024-06-13 20:19:02 +02:00
Daniel Dudzic
ce2d18a518
AXO: Disable Fastlane when ACDC is disabled
2024-06-13 18:52:04 +02:00
Emili Castells Guasch
034b4336f4
Add eslint config file
2024-06-13 18:44:21 +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
Emili Castells Guasch
dcfa88f39c
Add wp-scripts
2024-06-13 09:54:05 +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
Philipp Stracker
aa9c02a786
♻️ Improve SDK loading in PreviewButtonManager
2024-06-11 15:58:43 +02:00
Philipp Stracker
1f5caac2f1
🔀 Merge branch 'trunk'
2024-06-11 15:24:15 +02:00
Philipp Stracker
06100437ed
🔀 Merge branch 'trunk'
2024-06-11 15:23:22 +02:00
Philipp Stracker
c75d9ce56f
🐛 Improve error logging and dependency detection
2024-06-11 15:23:06 +02:00
Emili Castells
59fe2fb5fa
Merge pull request #2284 from woocommerce/PCP-1885-checkout-gateway-buttons-not-loading-with-elementor-checkout-widget
...
Fix Smart Buttons on Elementor checkout (1885)
2024-06-11 10:52:31 +02:00
Emili Castells Guasch
73bc86f9f5
Merge trunk
2024-06-11 10:52:10 +02:00
Emili Castells
c5056987f6
Merge pull request #2316 from woocommerce/PCP-3190-prevent-w-3-total-cache-plugin-from-caching-minifying-scripts
...
Add Litespeed Cache and W3 Total Cache compatibility (3190)
2024-06-11 10:47:42 +02:00
James Allan
ae9616205a
Product version bump update
2024-06-11 12:10:31 +10:00
Emili Castells
5a0a550f4c
Merge pull request #2330 from woocommerce/PCP-3239-fastlane-appears-only-for-usd-store-currency
...
AXO: Add AUD, CAD, EUR, GBP, and JPY as supported Fastlane currencies (3239)
2024-06-10 16:19:39 +02:00
Philipp Stracker
cdc98159b8
🔥 Remove unused import
2024-06-10 16:12:53 +02:00
Philipp Stracker
4242a1fd90
🔥 Remove unused yarn package
2024-06-10 14:17:25 +02:00
Daniel Dudzic
d82a9bca29
Fix PHPCS error
2024-06-10 11:41:57 +02:00
Daniel Dudzic
4c4c1a648e
Add AUD, CAD, EUR, GBP, and JPY as supported Fastlane currencies (3239)
2024-06-10 11:29:08 +02:00
Daniel Dudzic
2636bf271b
Make the ppcp-paylater-wc-blocks module dependent on ppcp-paylater-configurator being loaded
2024-06-07 23:04:57 +02:00
Daniel Dudzic
7537967266
Final polish
2024-06-07 22:07:21 +02:00
Philipp Stracker
3d26c525e1
🔥 Remove old preview button code comment
2024-06-07 21:18:55 +02:00