Commit graph

153 commits

Author SHA1 Message Date
Daniel Dudzic
d84f29a274
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3770-fastlane-implement-insights-sdk-for-block-checkout-ver2 2024-11-19 11:23:08 +01:00
Daniel Dudzic
1dfcc13da4
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3770-fastlane-implement-insights-sdk-for-block-checkout-ver2 2024-11-13 00:17:20 +01:00
Daniel Dudzic
f3c32dbe6c
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3783-fastlane-allow-merchants-to-disable-specific-card-types 2024-11-12 15:03:35 +01:00
Daniel Dudzic
1204edb1ca
Axo: Add PayPal Insights to the Block Checkout and fix the existing Classic Checkout integration 2024-10-29 11:04:41 +01:00
Daniel Dudzic
407f526064
Axo: Add support for shipping locations limiting 2024-10-17 23:56:03 +02:00
Daniel Dudzic
bbde7f7890
Axo: Add support for the card type limiting in the Fastlane classic checkout 2024-10-16 14:01:11 +02:00
Daniel Dudzic
733eee08a2
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3771-axo-refactor-pay-pal-script-loading-to-prevent-conflicts 2024-10-08 09:17:08 +02:00
Daniel Dudzic
e76c8b257b
Rename the new script loading script 2024-10-08 00:41:30 +02:00
Daniel Dudzic
07bedc4460
Add the UnifiedScriptLoader and usePayPalCommerceGateway hook 2024-10-07 10:42:56 +02:00
Daniel Dudzic
5e1c2a22d2
Introduce a unified script loader to improve script loading, debugging and prevent conflicts 2024-10-05 02:26:09 +02:00
Philipp Stracker
41e69fe556
🐛 Refresh cart when exiting Ryan flow
After restoring the original WooCommerce form, also trigger a cart refresh Ajax call
2024-10-01 18:16:15 +02:00
Philipp Stracker
d8d87ce1b8
🐛 Prevent infinite loop for invalid state values 2024-10-01 17:29:28 +02:00
Philipp Stracker
a897557f4f
🐛 Fix duplicate AXO check on initial load 2024-10-01 16:28:04 +02:00
Philipp Stracker
09e7c3670a
♻️ Small cleanup 2024-10-01 16:27:21 +02:00
Philipp Stracker
1e645a64e2
Sync Fastlane data with Woo cart
Main change of this branch. Tell WooCommerce about the shipping address used by Fastlane, so taxes and shipping options are correct
2024-10-01 16:20:37 +02:00
Philipp Stracker
9e03c503ac
♻️ Extract common logic into a class-method 2024-10-01 16:16:53 +02:00
Philipp Stracker
ad6af26e6c
🔀 Merge branch 'trunk' 2024-10-01 13:41:51 +02:00
Philipp Stracker
0abb2e0f8d
Store & restore the Woo form as needed
When Ryan flow starts, the values of the Woo-form are saved in an internal Map, and restored once the Ryan flow is disabled again (change email or select other payment gateway)
2024-09-30 18:59:22 +02:00
Philipp Stracker
89fa0f1fa7
New utility function to loop all group-fields 2024-09-30 18:57:00 +02:00
Philipp Stracker
8b0e12c06d
♻️ Minor code cleanup
- Define class properties
- Change visibility of properties
- Add some comments
2024-09-30 18:50:25 +02:00
Daniel Dudzic
360082a789
Remove fixed container background color 2024-09-30 17:48:53 +02:00
Daniel Dudzic
1032dff3f9
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3743-fastlane-render-watermark-on-right-side-of-email-field 2024-09-30 17:28:34 +02:00
Daniel Dudzic
653deeec7f
Move the watermark to the right side 2024-09-30 17:26:23 +02:00
Emili Castells
b7a1e498d5
Merge pull request #2653 from woocommerce/fastlane-card-preview-ui-for-classic-checkout
Fastlane card preview UI for classic checkout
2024-09-30 16:20:07 +02:00
Emili Castells
2f4a76a4bb
Merge pull request #2652 from woocommerce/PCP-3716-fix-fastlane-classic-checkout-card-icons
Fastlane Classic Checkout card icons (3716)
2024-09-30 16:19:56 +02:00
Philipp Stracker
b4f193aadf
💄 Improve card preview styling 2024-09-27 18:15:00 +02:00
Philipp Stracker
e4f9388077
🩹 Fix the card icon size 2024-09-27 17:28:59 +02:00
Philipp Stracker
84a39a96d7
💄 Move inline styles to CSS file 2024-09-27 17:21:16 +02:00
Philipp Stracker
4739008767
🎨 Apply code style (indentation) 2024-09-27 17:19:32 +02:00
Philipp Stracker
b57d5f6975
🩹 Ensure the loader is really displayed
Future proof the loader, to ensure it’s really displayed when needed
2024-09-27 16:49:41 +02:00
Philipp Stracker
a39ad34e54
🩹 Address CSS glitch in Safari
The before element was not hidden when the `.loader` class is removed. Safari only stopped the animation while keeping the loader visible.
2024-09-27 16:35:14 +02:00
Philipp Stracker
95a7b60c0d
🎨 Fix code style (indentation) 2024-09-27 16:32:47 +02:00
Daniel Dudzic
70676468b8
Axo Blocks: Migrate console logs to the Axo log function 2024-09-26 12:47:04 +02:00
Philipp Stracker
ee2eb4799f
🐛 Fix MasterCard icon for Ryan
Reason:
The icon-key was set to “MASTER_CARD” but Fastlane used “MASTERCARD” without an underscore.
2024-09-13 17:25:23 +02:00
Philipp Stracker
fbcc19ef4d
♻️ New getter for form-selector
To avoid typos and better document usage.
2024-09-11 18:55:03 +02:00
Philipp Stracker
6e1a6280de
🐛 Quick-fix to re-render missing Card component
Fix the clean-up process during email change, to generate a fresh Card component when needed.
2024-09-11 18:51:34 +02:00
Philipp Stracker
ad2181fd09
Add logic to update prefill-values 2024-09-04 15:11:46 +02:00
Philipp Stracker
5e08e415f0
♻️ Consolidate logic to initialize Fastlane UI 2024-09-04 15:11:03 +02:00
Philipp Stracker
c72c97f821
♻️ Rename a function 2024-09-04 15:06:50 +02:00
Philipp Stracker
9910164044
️ Only re-render the component when phone changed 2024-09-03 14:07:52 +02:00
Philipp Stracker
ed98033d10
💬 Minor changes in comment & variable name 2024-09-03 13:21:25 +02:00
Philipp Stracker
1398c4ac97
🐛 Refactor code to address some edge cases
When user selects a different gateway, enters a phone number, and then switches back to Fastlane: The existing phone number is correctly synced to Fastlane on initial component render.
2024-09-03 13:16:43 +02:00
Philipp Stracker
a4c2569a87
Sanitize number, only sync valid US numbers
Invalid phone numbers do not trigger a Fastlane refresh
2024-09-02 18:27:29 +02:00
Philipp Stracker
b0359c9de8
♻️ Minor code cleanup
- Define all properties on class level (instead of implicit declaration in constructor)
- Use the new `isRyanFlow` check
- Use the new `this.refreshFastlaneComponent()` method
2024-09-02 16:42:04 +02:00
Philipp Stracker
901774b8cc
Add phone-observer for Gary
Push the phone number from the Woo checkout form to the Fastlane component.
2024-09-02 16:40:14 +02:00
Danny Dudzic
0e401e25af
Merge pull request #2424 from woocommerce/PCP-3156-fastlane-strip-empty-spaces-from-email-to-trigger-profile-lookup
AXO: Add whitespace stripping on submission (3156)
2024-08-01 23:09:29 +02:00
Daniel Dudzic
7526189e40
AXO: Refactor the debug script in order to remove logger calls when logging is disabled 2024-08-01 11:48:52 +02:00
Daniel Dudzic
ce5214970c
AXO: Add whitespace stripping on submission 2024-07-16 14:33:03 +02:00
Emili Castells Guasch
11105d913b Run eslint autofix 2024-07-12 12:58:34 +02:00
Emili Castells
8dea9b3273
Merge pull request #2396 from woocommerce/next-version
Merge next-version into trunk
2024-07-09 14:54:49 +02:00