Commit graph

128 commits

Author SHA1 Message Date
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
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
Philipp Stracker
b4f193aadf
💄 Improve card preview styling 2024-09-27 18:15:00 +02:00
Philipp Stracker
84a39a96d7
💄 Move inline styles to CSS file 2024-09-27 17:21:16 +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
Emili Castells Guasch
4c05e7c2bd Merge branch 'trunk' into PCP-3170-add-es-lint-and-testing-library-for-js-code 2024-07-01 17:29:03 +02:00
Daniel Dudzic
b05c59c59e
AXO: Add col-1 class to fix layout on the Twenty Twenty-Four theme 2024-06-17 14:47:03 +02:00
Emili Castells Guasch
610db964f7 Add first test 2024-06-13 21:05:06 +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
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
Daniel Dudzic
7537967266
Final polish 2024-06-07 22:07:21 +02:00
Daniel Dudzic
0a06a913e7
Refactor the code 2024-06-07 00:35:55 +02:00
Daniel Dudzic
0ba33e9bb8
Adding the spinner and overlay on top of the submit button 2024-06-06 16:08:30 +02:00
Daniel Dudzic
38fc9906b7
First attempt: Add a continue button next to the email input 2024-06-06 01:16:52 +02:00
Emili Castells Guasch
b3ffa1030d Fix stringify objects 2024-05-29 15:21:21 +02:00
Emili Castells Guasch
1524d03ba2 Consolidate logging 2024-05-29 14:53:58 +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