Commit graph

87 commits

Author SHA1 Message Date
Philipp Stracker
3d271586a3
♻️ Simplify the address extraction logic 2024-10-07 14:56:09 +02:00
Philipp Stracker
7c56d58fe4
🚧 Swap local object for official config object 2024-10-07 12:37:05 +02:00
Philipp Stracker
64b1bf3c41
🚧 Minor cleanup 2024-10-07 12:12:21 +02:00
Philipp Stracker
2646cf4a44
🚧 Add new validation & configuration methods 2024-10-07 12:07:19 +02:00
Philipp Stracker
7b2397f86b
🚧 Make remaining attributes private 2024-10-07 12:04:50 +02:00
Philipp Stracker
3180c2933c
🚧 Remove obsolete attributes
Those have moved to the parent class
2024-10-07 12:02:21 +02:00
Philipp Stracker
3c03c2ce3b
🚧 Add css-class to style the payment button
Used by the parent class
2024-10-07 12:01:26 +02:00
Philipp Stracker
39b9c784d4
🚧 Implement getters for wrapper & styles 2024-10-07 11:54:19 +02:00
Philipp Stracker
0ef461e4b2
🚧 Fix code style 2024-10-07 11:35:39 +02:00
Philipp Stracker
9322812caa
🚧 Remove #isInitialized and obsolete getter 2024-10-07 11:35:13 +02:00
Philipp Stracker
c6ed763f0f
🚧 Remove obsolete functions 2024-10-07 11:31:00 +02:00
Philipp Stracker
d1bb877553
🚧 Update the constructor 2024-10-07 11:00:39 +02:00
Philipp Stracker
eef4c80a48
🚧 Remove unused methods 2024-10-07 10:58:53 +02:00
Philipp Stracker
096aa4fc53
🚧 Extend class from PaymentButton base 2024-10-07 10:48:04 +02:00
Philipp Stracker
d78201634b
💡 Add todo about missin refactoring 2024-09-06 15:24:06 +02:00
Philipp Stracker
a128228c86
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-applepay/resources/js/ApplepayButton.js
#	modules/ppcp-applepay/resources/js/boot-admin.js
#	modules/ppcp-button/resources/js/modules/Preview/PreviewButtonManager.js
#	modules/ppcp-googlepay/resources/js/GooglepayButton.js
#	modules/ppcp-googlepay/resources/js/boot-admin.js
2024-09-06 15:19:17 +02:00
Philipp Stracker
8577594033
🐛 Remove the empty Apple Pay wrapper 2024-08-28 13:41:55 +02:00
Philipp Stracker
6c54377a6e
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-applepay/resources/js/ApplepayButton.js
#	modules/ppcp-button/resources/js/modules/ContextBootstrap/CheckoutBootstap.js
2024-08-22 11:29:19 +02:00
Daniel Dudzic
f52117c196
Apple Pay: Fix shipping method switching inside of the Apple Pay modal in Classic Checkout 2024-08-08 15:38:08 +02:00
Philipp Stracker
c15715a02f
♻️ More reliable eligibility-check
Eligibility better aligns with the ApplePay SDK logic and will not insert a hidden button anymore.
2024-07-26 17:28:30 +02:00
Philipp Stracker
cbf9bff808
🐛 Fix bug with undefined log() method 2024-07-26 17:06:42 +02:00
Philipp Stracker
75f4a6f94a
🎨 Fully disable debug logic via WP_DEBUG 2024-07-24 20:47:59 +02:00
Philipp Stracker
a4d3af848c
🩹 Hide gateway on PayNow page when ineligible 2024-07-24 20:13:30 +02:00
Philipp Stracker
354a9ff175
💡 Better debug logs for show/hide events 2024-07-24 20:13:14 +02:00
Philipp Stracker
cffaa7a92f
💄 Fix button size in stand-alone gateway 2024-07-24 20:03:23 +02:00
Philipp Stracker
f1c5b70877
Extract payment button to own gateway 2024-07-24 20:02:27 +02:00
Philipp Stracker
4a0e410f52
🔧 Add missing config to eslintrc
- env.browser: Linter recognizes browser elements, like `HTMLElement`
- globals.jQuery: Library is present on all pages
2024-07-24 18:55:22 +02:00
Philipp Stracker
525b75e6a1
♻️ Entangle code into getters and atomic functions 2024-07-24 18:27:04 +02:00
Philipp Stracker
3bb0496123
Hide Apple Pay gateway on ineligible devices 2024-07-24 15:25:00 +02:00
Philipp Stracker
43d7e0788f
♻️ Chore: Minor code cleanup 2024-07-24 15:19:35 +02:00
Philipp Stracker
f75c3610d8
♻️ Chore: Slightly improve the debug-log output 2024-07-24 14:21:26 +02:00
Philipp Stracker
f4abf7028e
♻️ Chore: Make isInitialized flag private
Reason: The button instance is added to the global document scope, this helps to protect internal component state
2024-07-24 14:20:40 +02:00
Philipp Stracker
a473459ddb
♻️ Minor code cleanup and documentation 2024-07-23 17:42:24 +02:00
Philipp Stracker
eb216425fb
🚧 New Gateway for Apple Pay 2024-07-23 15:59:54 +02:00
Philipp Stracker
7f9cbd6f58
🐛 Fix general preview button shape 2024-07-15 13:16:08 +02:00
Emili Castells Guasch
11105d913b Run eslint autofix 2024-07-12 12:58:34 +02:00
Philipp Stracker
93f3e4e7ac
🦺 Add check for config that causes infinite loop 2024-06-07 21:12:34 +02:00
Pedro Silva
9cb63040d8
Merge branch 'trunk' into PCP-2347-new-feature-accelerated-checkout
# Conflicts:
#	modules.php
2024-04-12 10:22:47 +01:00
Pedro Silva
9bf23550dd
Insights preparation. 2024-04-11 17:14:22 +01:00
Pedro Silva
c342a4a0d8
Add ApplePay subscription validations in block pages. 2024-01-30 17:46:28 +00:00
Pedro Silva
94b92d8434
Remove not needed code. 2024-01-24 18:15:50 +00:00
Pedro Silva
80df0c9b27
Fix lint 2024-01-24 15:13:57 +00:00
Pedro Silva
96b83c9d0d
ApplePay Vaulting Integration 2024-01-24 08:47:48 +00:00
Pedro Silva
c8ee62892a
Improvement of fix spacing when switching ApplePay payment method in checkout page. 2023-12-21 12:01:01 +00:00
Pedro Silva
db997e934e
Fix spacing when switching ApplePay payment method in checkout page. 2023-12-21 11:46:21 +00:00
Pedro Silva
83a53ee223
Fix button margins on separate gateways 2023-12-15 17:11:16 +00:00
Pedro Silva
39040eb8e3
Remove unused code. 2023-12-13 10:18:37 +00:00
Pedro Silva
ec0dd5221d
Adjustments to apm button layouts. 2023-12-11 17:14:43 +00:00
Pedro Silva
55c7900a3e
Adjust block button styles. 2023-12-11 12:02:06 +00:00
Pedro Silva
46c575a401
Fix apm button styling 2023-12-07 18:20:58 +00:00