Commit graph

251 commits

Author SHA1 Message Date
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
2dae8021fd
Update the compatibility notice, removing Block Checkout from the incompatible list 2024-09-17 14:38:25 +02:00
Daniel Dudzic
deb1d7a618
Fix parameters declaration for the constructor 2024-09-16 18:47:23 +02:00
Daniel Dudzic
7b9a19a7f0
Merge branch 'PCP-3681-fastlane-use-advanced-card-processing-gateway-icons' of github.com:woocommerce/woocommerce-paypal-payments into fastlane 2024-09-16 18:45:58 +02:00
Danny Dudzic
9eaf93d642
Merge pull request #2597 from woocommerce/PCP-3679-fastlane-mastercard-icon-fix
Fix MasterCard in Fastlane component (3679)
2024-09-16 17:25:40 +02:00
Danny Dudzic
6d0ea8a7c4
Merge pull request #2605 from woocommerce/PCP-3380-prepare-fastlane-integration-on-block-checkout
AXO: Add support for Block Checkout
2024-09-16 17:24:30 +02:00
Philipp Stracker
cbd3fe24e4
Integrate ACDC icons in AXO gateway 2024-09-13 18:56:58 +02:00
Philipp Stracker
487038c0d3
🔥 Remove the Axo-specific icons from the gateway 2024-09-13 18:20:37 +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
63ff90f061
🩹 Do not modify gateway sort order in admin 2024-09-12 16:48:20 +02:00
Philipp Stracker
0cdfe13102
Enforce Fastlane to be the first payment method 2024-09-12 16:38:27 +02:00
Philipp Stracker
a0d0a06dfd
💡 Remove dev-comments, clean up 2024-09-12 15:44:35 +02:00
Philipp Stracker
07d9ec5f88
🚧 Document bug with block checkout 2024-09-12 15:20:51 +02:00
Philipp Stracker
9564fd8d56
🎨 Apply phpcs rules, minor cleanup 2024-09-12 15:14:42 +02:00
Philipp Stracker
d41b967e90
♻️ Reuse existing error handling logic 2024-09-12 15:14:33 +02:00
Philipp Stracker
c011e05ed8
♻️ Extract order-creation to own method 2024-09-12 15:14:29 +02:00
Philipp Stracker
9c86bc23e1
♻️ Move code into try-catch block 2024-09-12 15:14:25 +02:00
Philipp Stracker
a3d4a3e04f
🥅 Add generic error handling 2024-09-12 15:14:19 +02:00
Philipp Stracker
02701ca0f5
Add ProcessPaymentTrait to AxoGateway
We’ll use this Trait later for error handling; the trait requires the SessionHandler instance.
2024-09-12 15:14:12 +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
Niklas Gutberlet
43e9d4c85f
Merge pull request #2554 from woocommerce/PCP-3562-fastlane-prefill-phone-number-inside-card-field-components
Fastlane prefill phone number inside card field components (3562)
2024-09-11 17:07:47 +02:00
Daniel Dudzic
c24b753c38
AXO: Remove restriction for the Force shipping to the customer billing address shipping config 2024-09-10 19:12:14 +02:00
Philipp Stracker
5237ebc0ed
Merge pull request #2544 from woocommerce/PCP-3575-fastlane-transaction-id-not-clickable
Only hide the Fastlane payment gateway on the WooCommerce Settings Payments tab(3575)
2024-09-06 18:38:09 +02:00
Philipp Stracker
2e088add15
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-axo/src/AxoModule.php
2024-09-06 16:59:24 +02:00
Philipp Stracker
80649227c1
Merge pull request #2552 from woocommerce/PCP-3616-fastlane-extend-list-of-incompatible-plugins
Extend the list of Fastlane incompatible plugins(3616)
2024-09-06 16:48:38 +02:00
Philipp Stracker
c6a25a65fc
🔀 Merge branch 'trunk' 2024-09-06 16:48:27 +02:00
Philipp Stracker
2cb026604c
Merge branch 'PCP-1773-php74'
# Conflicts:
#	composer.lock
2024-09-04 15:47:37 +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
Narek Zakarian
8514f3a49c
Fix the coding styles 2024-09-03 16:35:58 +04: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
Narek Zakarian
a803467b96
Fix the coding styles 2024-09-03 15:19:38 +04: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
Narek Zakarian
cc06b0101a
Fix the coding styles 2024-09-03 15:05:58 +04:00
Narek Zakarian
1efb3a0087
Refactor the configuration to include full names 2024-09-03 15:05:23 +04:00
Alex P.
f538ea2ef2
Require PHP 7.4+ 2024-09-03 09:07:12 +03: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
Narek Zakarian
c3c9beb722
Extend list of fastlane incompatible plugins. 2024-09-02 16:24:01 +04:00
Philipp Stracker
7509f914ab
Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-admin-notices/src/AdminNotices.php
#	modules/ppcp-local-alternative-payment-methods/src/LocalAlternativePaymentMethodsModule.php
#	modules/ppcp-paylater-configurator/src/PayLaterConfiguratorModule.php
#	modules/ppcp-wc-gateway/src/WCGatewayModule.php
2024-08-30 15:16:20 +02:00
Narek Zakarian
ac31cfe476
Fix the coding styles 2024-08-28 17:32:59 +04:00
Narek Zakarian
3f1b998118
Only remove the gateway on the WooCommerce Settings Payments tab.
Additionally introduce the function to check if is WooCommerce Settings Payments tab screen (/wp-admin/admin.php?page=wc-settings&tab=checkout).
2024-08-28 16:52:17 +04:00
Emili Castells Guasch
f3bf4322c5 Fix phpcs 2024-08-28 12:33:03 +02:00
Moritz Meißelbach
c76fcb91ba
Remove (apparently) dead getKey methods 2024-08-23 15:04:28 +02:00
Moritz Meißelbach
4d9f23e315
Merge branch 'refs/heads/trunk' into modularity-module-migration
# Conflicts:
#	composer.lock
#	modules/ppcp-axo/src/AxoModule.php
#	modules/ppcp-blocks/src/BlocksModule.php
#	modules/ppcp-compat/src/CompatModule.php
#	modules/ppcp-googlepay/src/GooglepayModule.php
#	modules/ppcp-order-tracking/src/OrderTrackingModule.php
#	modules/ppcp-wc-subscriptions/src/WcSubscriptionsModule.php
2024-08-23 14:25:36 +02:00