Commit graph

421 commits

Author SHA1 Message Date
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
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
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
c75d9ce56f
🐛 Improve error logging and dependency detection 2024-06-11 15:23:06 +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
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
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
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
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
0245fa640b
Determine if venmo button is clicked and do not pass shipping callback handlers 2024-05-27 19:57:00 +04:00
Narek Zakarian
802c13cf8e
Enable the Shipping Callback handlers 2024-05-27 17:46:02 +04:00
Daniel Dudzic
a3c610bc1c
Replace crypto.randomUUID with a dependency (3165) 2024-05-27 11:33:34 +02:00
Emili Castells Guasch
ff3091b3a6 Use uuid for data-client-metadata-id 2024-05-24 17:20:44 +02:00
Narek Zakarian
bd745cb7d4
Do not update shipping when subscription 2024-05-24 18:49:10 +04:00
Narek Zakarian
796196bbbe
Remove unnecessary console log 2024-05-22 21:14:36 +04:00
Narek Zakarian
8301da1550
Do not add shipping handlers when option is checked 2024-05-22 21:02:42 +04:00
Narek Zakarian
1de6039d5b
Merge branch 'trunk' into PCP-3136-enable-shipping-callback-for-wc-subscriptions 2024-05-22 15:58:35 +04:00
Narek Zakarian
43f938f0a4
Fix payment with standard card button gateway + shipping callback 2024-05-21 20:48:13 +04:00
Narek Zakarian
1de72ed0bf
allow skipping confirmation page for subscriptions 2024-05-21 18:41:27 +04:00
Narek Zakarian
e95faf565f
Check for venmo and vaulting before creating wc order 2024-05-17 00:25:36 +04:00
Narek Zakarian
1561272657
Check for venmo and vaulting before creating wc order 2024-05-17 00:24:51 +04:00
Narek Zakarian
20ccef8b28
Check for venmo and vaulting for shipping handlers 2024-05-17 00:24:22 +04:00
Narek Zakarian
21bc7be648
do not process order from block pages 2024-05-15 22:06:52 +04:00
Narek Zakarian
db3a65ddef
Redirect to order received 2024-05-14 15:30:14 +04:00
Narek Zakarian
b7498149ad
Allow handling the shipping in PayPal 2024-05-06 18:44:24 +04:00
Narek Zakarian
f1a114588a
Create shipping handler for smart button 2024-05-06 18:43:27 +04:00
Emili Castells Guasch
2829e3a8a5 Revert to not add data-user-id-token if data-sdk-client-token exist for now 2024-04-29 17:31:10 +02:00
Emili Castells Guasch
e1271c4087 Do not add data-user-id-token if payment method is axo 2024-04-29 17:27:09 +02:00
Emili Castells Guasch
c13b9b2621 Prevent Do not pass SDK token and ID token error by not adding data-user-id-token when using data-sdk-client-token 2024-04-29 15:52:46 +02:00
Daniel Dudzic
ab718b6045
Messages Bootstrap: Add a render retry functionality 2024-04-26 00:00:00 +02:00
Emili Castells
a3bbcfeec5
Merge pull request #2155 from woocommerce/PCP-2347-new-feature-accelerated-checkout
New feature: Accelerated Checkout (2347)
2024-04-18 16:04:39 +02:00
Pedro Silva
20a4a8e0d3
Fix AXO loading when vaulting disabled 2024-04-17 14:51:30 +01:00
Emili Castells Guasch
e1486deff8 Add variable subscription variation support for cart page 2024-04-15 10:52:35 +02:00
Emili Castells Guasch
a2e0f68f1b Get variation plan id from cart in checkout page 2024-04-12 16:07:39 +02:00
Pedro Silva
43b9452d54
Fix lint 2024-04-12 12:19:36 +01:00
Pedro Silva
9cb63040d8
Merge branch 'trunk' into PCP-2347-new-feature-accelerated-checkout
# Conflicts:
#	modules.php
2024-04-12 10:22:47 +01:00
Emili Castells Guasch
197e70607a Add payment token for guest free trial subscription (WIP) 2024-04-09 17:34:51 +02:00
Emili Castells Guasch
457e9f0182 Allow free trial subscription without payment token for logged-in users 2024-04-06 17:31:57 +02:00