Commit graph

1252 commits

Author SHA1 Message Date
Philipp Stracker
b5c08e842e
♻️ Make code more readable, resolve one warning 2025-03-18 14:53:49 +01:00
Philipp Stracker
a1f8022574
♻️ Pass decision flags to disabled-funding hook 2025-03-17 16:59:01 +01:00
Philipp Stracker
3fead84a70
♻️ Move DCC hooks to separate helper method 2025-03-17 15:23:29 +01:00
Philipp Stracker
3cfbd1002f
♻️ Slightly improve code readability 2025-03-17 14:59:03 +01:00
Philipp Stracker
745c1cc88c
🔥 Remove an unused function argument 2025-03-17 14:58:16 +01:00
Philipp Stracker
f5194c0be4
♻️ Improve code style and readability 2025-03-17 14:45:37 +01:00
Philipp Stracker
42b357d8a6
♻️ Simplify SmartButton code a bit 2025-03-14 18:28:12 +01:00
Philipp Stracker
4803159436
♻️ Refactor the DisabledFundingSource logic
Simplify condiitons and code structure, as the old logic was overly complex. Also, ACDC logic is outsourced to the CardFieldsModule via filters and does not need to be considered here.
2025-03-14 18:27:53 +01:00
Philipp Stracker
901e7761e1
Consolidate ACDC logic in CardFieldsModule 2025-03-14 18:05:21 +01:00
Philipp Stracker
433e7f7c8b
🔥 Remove redundant checks from SmartButton
Most checks are already implemented in the CardPaymentsConfiguration class.
2025-03-14 16:27:01 +01:00
Philipp Stracker
afb7044b03
🚚 Rename configuration class
The class name does not reflect the purpose of the class
2025-03-14 16:15:31 +01:00
Philipp Stracker
b9d7574418
💡 Add/update comments related to #legacy-ui todos 2025-03-14 15:30:41 +01:00
Philipp Stracker
d4857102fe
♻️ Apply more suitable DI service name 2025-03-14 12:18:05 +01:00
Philipp Stracker
532543f490
♻️ Use the DCCGatewayConfiguration service 2025-03-13 18:04:01 +01:00
Philipp Stracker
201f5ab20c
♻️ Implement DCCGatewayConfiguration service
Instead of fixing incorrect conditions in different files, we want to use a single source of truth for the DCC status
2025-03-12 18:31:11 +01:00
Philipp Stracker
791a5d33da
♻️ Make DCC check clearer in SmartButton class
Done during debugging to better understand the data flow, does not change/solve anything
2025-03-12 17:04:38 +01:00
Philipp Stracker
11f91eed62
♻️ Refactor the DisabledFundingSources class
Split the code into small, documented functions to make the decision flow and data-relationship clearer
2025-03-12 15:58:39 +01:00
Philipp Stracker
3a652f30b5
🎨 Fix phpcs suggestions 2025-03-12 14:53:13 +01:00
Philipp Stracker
a5ee2e29d5
♻️ Never disable funding source “paypal”
Consolidate funding source logic into the responsible class
2025-03-12 14:36:41 +01:00
Philipp Stracker
6da8988e0a
♻️ Improve readability and code structure 2025-03-12 12:31:28 +01:00
Philipp Stracker
1938f6b6ed
🎨 Make condition easier to read 2025-03-12 11:48:15 +01:00
Narek Zakarian
f83449090b
Allow to filter the disabled funding sources 2025-03-05 18:59:41 +04:00
Philipp Stracker
9f44657400
💡 Document use of “settings->set()” via comments 2025-02-18 13:04:51 +01:00
Philipp Stracker
7a106742e3
🚚 Rename environment-service 2025-02-17 18:48:38 +01:00
Philipp Stracker
d672656513
🔥 Remove unused “use” statements 2025-02-17 18:26:05 +01:00
Philipp Stracker
fcb9ae488a
🔥 Remove unused “use” statements 2025-02-17 16:55:18 +01:00
Philipp Stracker
a3fbe6f19f
♻️ Refactor EarlyOrderHandler 2025-02-17 16:46:12 +01:00
Philipp Stracker
7d2b0694d9
♻️ Refactor conditions inside services.php 2025-02-17 16:42:47 +01:00
Philipp Stracker
90d2c77a5a
🚚 Extract Environment class to gateway module 2025-02-03 13:34:30 +01:00
Daniel Hüsken
14f91218f6
when variable product is in stock there is no need to query all variations 2024-12-10 13:23:20 +01:00
Philipp Stracker
cd5622260d
🎨 Eslint auto-fixes 2024-11-29 12:00:45 +01:00
Philipp Stracker
71c19d8034
Always show smart buttons in ‘preview’ context 2024-11-29 11:59:48 +01:00
Philipp Stracker
c18bf945ef
️ Only init smart buttons when they are activated 2024-11-28 13:34:59 +01:00
Philipp Stracker
3200b05e48
💄 Hide spinner when smart buttons are deactivated 2024-11-28 13:25:31 +01:00
Philipp Stracker
5e4157d488
🐛 Show PayPal payment button in ACDC-only mode
When only using ACDC without smart buttons, this commit makes the default “Proceed to PayPal” button visible
2024-11-28 13:23:08 +01:00
Philipp Stracker
47b57058fb
️ Optimize PayPal SDK loading for block contexts 2024-11-27 17:35:07 +01:00
Philipp Stracker
d6a130bb24
♻️ Remove duplicates from “components” param 2024-11-27 17:19:56 +01:00
Philipp Stracker
2ac074dc2b
🐛 Load SmartButton when DCC is enabled 2024-11-27 17:05:43 +01:00
Emili Castells Guasch
fa9a1c704d Add sdk and user tokens based on user logged status 2024-11-18 17:54:02 +01:00
Danny Dudzic
f628cffa9e
Merge pull request #2772 from woocommerce/PCP-3827-implement-block-button-styles-for-google-pay-button
Google Pay: Add support for Button Options in the Block Checkout (3827)
2024-11-14 21:24:26 +01:00
Philipp Stracker
e97e464fd8
🐛 Hide payment button wrapper when not eligible 2024-11-08 14:39:06 +01:00
Daniel Dudzic
f51c41d222
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3827-implement-block-button-styles-for-google-pay-button 2024-11-07 01:16:51 +01:00
Daniel Dudzic
b117ff9b7c
Add ButtonOptions support for the Google Pay button 2024-11-07 01:00:53 +01:00
Philipp Stracker
73cc6b177e
🔀 Merge branch 'PCP-3644’
# Conflicts:
#	modules/ppcp-applepay/resources/js/ApplepayButton.js
2024-11-04 17:36:17 +01:00
Alex P.
b67265ac15
Update js deps 2024-11-04 17:15:27 +02:00
Emili Castells
c1ff2633e3
Merge pull request #2705 from woocommerce/PCP-2170_Fix_probs_with_autooptimize
Fix problems with autoptimize plugin (2170)
2024-10-30 10:41:52 +01:00
Alex P.
8f6871fd5c
Sync PayPal product page button state to Apple/Google, show alerts 2024-10-30 09:39:15 +02:00
Alex P.
db273075c4
Merge branch 'trunk' into PCP-3644-apple-pay-button-disappears-on-classic-checkout 2024-10-29 21:41:23 +02:00
Emili Castells
9f3e8a0723
Merge pull request #2714 from woocommerce/PCP-3347-rework-location-settings
Use basic redirect gateway when checkout smart buttons disabled
2024-10-24 11:10:43 +02:00
Alex P.
ccbb2995a4
Use subscription_helper for manualRenewalEnabled 2024-10-22 17:00:46 +03:00