Commit graph

107 commits

Author SHA1 Message Date
Philipp Stracker
119fdec839
♻️ Minor simplification 2024-09-16 18:27:42 +02:00
Philipp Stracker
b05a3e933f
🔥 Remove useless state value 2024-09-16 17:56:00 +02:00
Philipp Stracker
c8fd798f62
Update prefill-value on phone number change 2024-09-16 17:55:19 +02:00
Philipp Stracker
50daa3e99e
Inject paymentComponent to phone-sync-handler 2024-09-16 17:52:32 +02:00
Daniel Dudzic
a1ded99f3f
Move axo block module loading to the correct place plus some minor PHPCS fixes 2024-09-16 17:16:29 +02:00
Philipp Stracker
55635d11c0
🔀 Merge branch 'PCP-3380’ 2024-09-16 16:35:12 +02:00
Danny Dudzic
47d5874e62
Merge pull request #2603 from woocommerce/PCP-3649-fastlane-backend-logic-changes
Fix Gary-flow in PCP-3380 branch (3649)
2024-09-16 16:26:39 +02:00
Daniel Dudzic
ae3ad55cde
Add the message on load instead of the card fields 2024-09-16 16:25:16 +02:00
Philipp Stracker
e2cb454556
🔥 Remove unused file 2024-09-16 15:47:10 +02:00
Philipp Stracker
243630ea5d
🐛 Revert logic to call setPaymentComponent
Before the change, the paymentComponent always was null, as it was not set anywhere.
2024-09-16 15:45:41 +02:00
Philipp Stracker
78e0da27a1
🔊 More descriptive error message
New error reason when tokenization fails due to missing paymentComponent
2024-09-16 15:13:25 +02:00
Philipp Stracker
cfb9b31286
🚚 More accurate file name 2024-09-16 15:02:36 +02:00
Philipp Stracker
25d5d3d059
🔀 Merge branch 'PCP-3380’ 2024-09-16 14:49:55 +02:00
Philipp Stracker
22b34503f5
Fix error with woocommerce 9.3.1 2024-09-16 13:30:03 +02:00
Philipp Stracker
650bc2af41
Integrate phone-sync handler again 2024-09-16 13:12:13 +02:00
Philipp Stracker
50711fb37d
🔀 Merge branch 'PCP-3380’
# Conflicts:
#	modules/ppcp-axo-block/resources/js/index.js
2024-09-16 13:11:23 +02:00
Daniel Dudzic
cfa411078a
Remove the redundant scriptLoading.js file 2024-09-14 00:37:00 +02:00
Daniel Dudzic
75c808216c
Merge branch 'PCP-3649-fastlane-backend-logic-for-blocks' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3380-prepare-fastlane-integration-on-block-checkout 2024-09-14 00:21:27 +02:00
Daniel Dudzic
d7bbed1e01
Merge branch 'PCP-3662-implement-the-enable-fastlane-checkbox' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3380-prepare-fastlane-integration-on-block-checkout 2024-09-13 23:13:27 +02:00
Daniel Dudzic
859fd3396b
Optimize for prop drilling 2024-09-13 23:09:51 +02:00
Daniel Dudzic
f77aae6b90
Add address card toggling 2024-09-13 22:30:04 +02:00
Daniel Dudzic
96c566321a
Clean up the CSS 2024-09-13 19:36:08 +02:00
Daniel Dudzic
4bda191f0e
Further separate code into hooks: useAxoCleanup, useAxoSetup, usePayPalScript and usePaymentSetup. Hide Shipping and Billing details on load. 2024-09-13 19:24:23 +02:00
Philipp Stracker
5833b3949d
🚧 Integrate sync handler into block checkout
# Conflicts:
#	modules/ppcp-axo-block/resources/js/index.js
2024-09-13 17:58:45 +02:00
Philipp Stracker
f3c83c6ec7
New event handler to observe the phone number 2024-09-13 17:56:20 +02:00
Daniel Dudzic
90aa261c8b
Refactor the change shipping address and change card buttons to a more modular structure 2024-09-13 17:27:39 +02:00
Daniel Dudzic
3315fbe116
Refactor the email button, shipping change button, and watermark code to a more modular structure 2024-09-13 15:27:10 +02:00
Philipp Stracker
9a132fc050
🔀 Merge branch 'PCP-3662’ 2024-09-12 16:22:02 +02:00
Philipp Stracker
db6b860b5f
Integrate Gary flow in AXO block checkout 2024-09-12 15:44:29 +02:00
Philipp Stracker
389860c739
♻️ Re-organize payment-setup-integration
Performance update, and preparation for Gary-flow changes
2024-09-12 15:44:23 +02:00
Philipp Stracker
7e707d5aa1
Add dependencies for Gary checkout
# Conflicts:
#	modules/ppcp-axo-block/resources/js/index.js
2024-09-12 15:44:12 +02:00
Philipp Stracker
e9a3c0bb6d
New hook to return AXO billing details 2024-09-12 15:21:12 +02:00
Philipp Stracker
9234a833dd
Submit axo_nonce 2024-09-12 15:21:06 +02:00
Daniel Dudzic
f470fb0c53
Rename the useAxoBlockManager hook to useFastlaneSdk 2024-09-12 14:37:22 +02:00
Daniel Dudzic
fb0e0939a2
Move EmailSubmitButton to a separate file 2024-09-12 14:31:10 +02:00
Daniel Dudzic
26fe36951c
Split the useUserInfoChange to separate hooks useCardChange and useShippingAddressChange 2024-09-12 13:53:35 +02:00
Daniel Dudzic
eafbf3ca30
Merge branch 'PCP-3380-prepare-fastlane-integration-on-block-checkout' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3380-prepare-fastlane-integration-on-block-checkout 2024-09-11 23:01:45 +02:00
Daniel Dudzic
09428e9a37
Remove redundant Address Card component 2024-09-11 22:59:32 +02:00
Daniel Dudzic
24a481bdeb
Add Billing Details updating when a new card gets selected 2024-09-11 22:58:13 +02:00
Philipp Stracker
d4c242c013
Submit axo_nonce during block checkout
Initial logic supports Ryan flow, when paying with a saved card.
2024-09-11 13:00:25 +02:00
Daniel Dudzic
861034855e
Make sure you can't trigger lookup when a different payment gateway is selected 2024-09-11 00:44:32 +02:00
Daniel Dudzic
f86f6a3f5a
Add Submit button and loading spinners 2024-09-11 00:39:09 +02:00
Daniel Dudzic
907b807122
Merge branch 'PCP-3380-prepare-fastlane-integration-on-block-checkout' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3380-prepare-fastlane-integration-on-block-checkout 2024-09-10 18:47:08 +02:00
Daniel Dudzic
e3996b1f6e
Add Submit button 2024-09-10 18:46:27 +02:00
Daniel Dudzic
bccfe4c436
Add better state management utilizing Redux 2024-09-10 12:03:50 +02:00
Philipp Stracker
83bf19cbc5
♻️ Switch from CC-Gateway to the AxoGateway 2024-09-09 18:06:29 +02:00
Philipp Stracker
4b8bec84d4
Use gateway’s “is_available” flag 2024-09-09 18:05:09 +02:00
Philipp Stracker
e99910117d
♻️ Accept any valid gateway instance via DI 2024-09-09 18:03:14 +02:00
Philipp Stracker
e246187599
🎨 Apply phpcs rules 2024-09-09 16:13:53 +02:00
Philipp Stracker
2187c3a58f
Commit updated yarn.lock 2024-09-06 18:03:48 +02:00