Narek Zakarian
0038922fe8
Add filter for the total
2024-07-09 15:40:16 +04:00
Daniel Dudzic
f758f4c2c8
AXO: Prevent loading scripts and executing logic in PayPal continuation mode
2024-07-08 15:25:16 +02:00
Danny Dudzic
d2e2f76f59
Merge pull request #2386 from woocommerce/PCP-3330-fastlane-improve-button-styling-to-better-match-theme-defaults-e-g-on-place-order-button
...
Improve Place Order button styling (3330)
2024-07-08 12:03:26 +02:00
Philipp Stracker
964b9ac606
🔀 Merge branch 'trunk'
2024-07-03 11:05:43 +02:00
Emili Castells
6bd938a177
Merge pull request #2381 from woocommerce/PCP-3319-remove-bcdc-button-from-block-express-checkout-area
...
Remove BCDC button from block Express Checkout area (3319)
2024-07-02 17:43:15 +02:00
Emili Castells Guasch
78bbc1fd67
Remove psalm comments
2024-07-02 17:38:25 +02:00
Philipp Stracker
6efcaa5630
✨ New option to configure BN-Code
...
Configurable via a wp-config constant, or a new wp-filter.
2024-07-02 16:10:10 +02:00
Daniel Dudzic
d253aa44fe
Improve Place Order button styling
2024-07-02 13:07:39 +02:00
Emili Castells
6785ca9b06
Merge pull request #2372 from woocommerce/PCP-3250-apple-pay-and-google-pay-buttons-dont-appear-in-pay-pal-button-stack-on-multi-step-checkout
...
Apple Pay and Google Pay buttons don't appear in PayPal Button stack on multi-step Checkout (3250)
2024-07-02 11:05:09 +02:00
Philipp Stracker
0197896500
🥅 Catch several JS/API related preview issues
2024-07-01 15:25:06 +02:00
Emili Castells Guasch
7be9a7751a
Ensure express card button is not rendered when advanced card gateway is enabled
2024-06-28 17:20:16 +02:00
Emili Castells Guasch
0e6f6bfc97
Add unit tests
2024-06-28 16:28:57 +02:00
Emili Castells Guasch
43f4d15cea
Extract disabled funding sources logic into a new class
2024-06-28 14:47:23 +02:00
Philipp Stracker
d1318d7247
✨ Add preview button eligibility check
2024-06-27 18:32:31 +02:00
Philipp Stracker
dcd8307118
♻️ Optional init value for trigger selector
2024-06-26 18:54:09 +02:00
Philipp Stracker
4c10c37782
♻️ Extract button-refresh logic to own helper file
...
- Exrtract repeat event-init logic to new helper file
- Remove the jQuery dependency
2024-06-26 18:16:54 +02:00
Philipp Stracker
25c5ef2e9e
✨ New helper to monitor multistep checkout forms
...
The new script adds an interval to monitor the visibility of the “woocommerce-checkout-payment” element to initialize payment buttons with a delay, if needed.
2024-06-26 17:56:48 +02:00
Philipp Stracker
0e6e079e40
💄 Fix Google Pay button style
...
Make the outline of the payment button visible
2024-06-25 12:52:33 +02: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
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
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
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
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
c75d9ce56f
🐛 Improve error logging and dependency detection
2024-06-11 15:23:06 +02:00
Emili Castells Guasch
73bc86f9f5
Merge trunk
2024-06-11 10:52:10 +02:00
Philipp Stracker
6f73e82d3e
✨ Preview buttons can be static
...
When the current page does not contain any edit-fields for the current APM preview button, it enters “static” mode. Static buttons ignore most update requests, and render as they were defined during page load
2024-06-07 21:14:12 +02:00
Philipp Stracker
33c6c06e85
🐛 Fix button specific config-preparation
2024-06-07 15:42:16 +02:00
Philipp Stracker
a01f1ea77f
🔀 Merge branch 'trunk'
2024-06-07 12:32:32 +02:00
Philipp Stracker
180afaad89
♻️ Fix logic in preview button base classes
...
- Promise-based initialization is executed in correct order
- Support to redraw single APM type of button
- Fix the button style
- Simplify the PreviewButton code
2024-06-07 12:19:39 +02:00
Emili Castells
120e76b46a
Merge pull request #2246 from woocommerce/PCP-2722-add-block-checkout-compatibility-to-advanced-card-processing
...
Add block Checkout compatibility to Advanced Card Processing (2722)
2024-06-06 09:53:45 +02:00
Philipp Stracker
202f308850
🔀 Merge branch 'trunk' into PCP-3179-apple-pay-google-pay-buttons-no-longer-visible-in-standard-payments-button-previews-after-moving-them-to-advanced-card-processing-tab
2024-06-05 18:43:47 +02:00
Philipp Stracker
ebb1f6962f
♻️ Create generic base classes for preview buttons
2024-06-05 17:58:54 +02:00
Emili Castells Guasch
4ee33d5fd0
Merge trunk
2024-06-04 15:59:00 +02:00
Emili Castells Guasch
78794594a5
Merge branch 'trunk' into PCP-2722-add-block-checkout-compatibility-to-advanced-card-processing
2024-06-03 15:17:37 +02:00
Emili Castells
a34ada2f12
Merge pull request #2296 from woocommerce/PCP-3133-unsuccessfully-payment-with-coupon-from-short-cart-when-require-final-confirmation-on-checkout-is-not-enabled
...
Calculate totals after adding shipping to include taxes (3133)
2024-06-03 14:26:17 +02:00
Emili Castells
3aba8d7dea
Merge pull request #2259 from woocommerce/PCP-3136-enable-shipping-callback-for-wc-subscriptions
...
Enable shipping callback for WC subscriptions (3136)
2024-06-03 14:25:36 +02:00
Narek Zakarian
4967c472e7
Update the shipping option for subscriptions on address change
2024-06-03 15:27:01 +04:00
Narek Zakarian
dccb038e5e
Calculate totals after adding shipping to include taxes.
2024-05-31 18:46:21 +04:00
Emili Castells Guasch
0c90952b29
Merge branch 'trunk' into PCP-2722-add-block-checkout-compatibility-to-advanced-card-processing
2024-05-30 14:08:39 +02:00
Daniel Dudzic
709871820f
Fix Smart Buttons on Elementor checkout
2024-05-29 15:59:56 +02:00
Emili Castells Guasch
4c9ccebd10
Merge branch 'fastlane' into PCP-3172-fastlane-send-js-logs-to-woo-commerce-logger
2024-05-29 12:55:06 +02:00
Narek Zakarian
84616d07da
dont need to pass the payment source
2024-05-27 19:57:48 +04:00
Narek Zakarian
49d943e25b
use funding source instead of payment source as they are same
2024-05-27 19:57:30 +04:00