Commit graph

1316 commits

Author SHA1 Message Date
Philipp Stracker
dada95520e
🐛 Fix incorrect preview update on settings page 2024-08-08 18:52:53 +02:00
Philipp Stracker
722289a545
Provide means to update styling of a button
Before this, we needed to create a new button instance to display changes in button style. This allows updating an existing button instance
2024-08-08 17:53:59 +02:00
Philipp Stracker
3538a69402
️ Only recreate payment button when needed
Check if the button is still in DOM before recreating it
2024-08-08 14:42:01 +02:00
Philipp Stracker
934441fdeb
🐛 Fix initial visibility of payment button 2024-08-08 14:41:09 +02:00
Philipp Stracker
844cafd9cb
💡 Use ConsoleLogger for PreviewButtonManager
Also add some comments and additional log output
2024-08-08 14:08:20 +02:00
Philipp Stracker
7729007774
♻️ Unify constructor arguments of PaymentButton
Factory method and constuctor have same arguments in the same order
2024-08-08 14:05:57 +02:00
Philipp Stracker
9ac4300995
🐛 Address some errors in preview (Settings page) 2024-08-08 13:10:26 +02:00
Philipp Stracker
7f3636348b
🐛 Fix button insertion logic in block checkout
The Google Pay button was inserted into the wrong DOM wrapper
2024-08-07 23:07:04 +02:00
Philipp Stracker
e9c557a361
🐛 Fix issue with duplicate button instances
On Block Checkout pages, there were multiple PaymentButton instances for the same context.
2024-08-07 22:36:35 +02:00
Philipp Stracker
95c7d4f7bc
♻️ Simplify PaymentButton creation code 2024-08-07 18:26:02 +02:00
Philipp Stracker
429568fbd9
🔥 Minor cleanup 2024-08-07 14:48:36 +02:00
Philipp Stracker
31867b17d6
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-googlepay/resources/js/GooglepayButton.js
2024-08-07 14:30:12 +02:00
Philipp Stracker
fc805a4369
♻️ Move most of the display logic to base class
The PaymentButton base class now handles display logic that is shared between different APMs
2024-08-06 17:45:53 +02:00
Philipp Stracker
b85a16abda
♻️ Move button event dispatcher to helper file 2024-08-06 17:13:51 +02:00
Emili Castells Guasch
b42e9436ae Add id token cache key for each user 2024-08-06 15:30:50 +02:00
Philipp Stracker
3c200e408a
🚚 Move ConsoleLogger to wc-gateway module 2024-08-05 12:54:24 +02:00
Philipp Stracker
f69209b91c
New PaymentButton base class for APM buttons
This class is used to render buttons in the front end, and encapsulates logic that is shared between ApplePay and GooglePay buttons
2024-08-02 17:12:07 +02:00
Philipp Stracker
f1f243505c
Introduce a new ConsoleLogger JS class
Extract debug logic to separate component
2024-08-02 16:32:27 +02:00
Emili Castells Guasch
2815fcbb91 Fix phpcs 2024-08-02 15:24:26 +02:00
Philipp Stracker
0888c696ff
Sync gateway visibility via custom event 2024-07-30 14:48:47 +02:00
Philipp Stracker
490cd1958b
♻️ Move config object to appropriate file 2024-07-30 13:51:16 +02:00
Narek Zakarian
a7c43ab0d1
Do not add tex info into order meta during order creation 2024-07-29 15:55:29 +04:00
Narek Zakarian
b96c87597a
Do not consider needShipping from single page 2024-07-26 18:06:09 +04:00
Emili Castells Guasch
9f18f2e899 Refactor: extract logic to corresponding modules 2024-07-26 15:39:25 +02:00
Daniel Dudzic
f25140b51d
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3374-google-pay-button-not-displayed-in-the-word-press-editor 2024-07-26 13:24:21 +02:00
Daniel Dudzic
09ff65aba4
Refactor script loading to allow for adding custom namespaces 2024-07-26 12:39:38 +02:00
Narek Zakarian
4a72743d0f
Merge branch 'trunk' into PCP-3384-shipping-method-visible-in-pay-pal-popup-for-zone-that-has-no-shipping-defined-when-shipping-callback-enabled 2024-07-25 18:30:38 +04:00
Emili Castells Guasch
c4232e3957 Add card payment for guest free trial (WIP) 2024-07-25 12:08:59 +02:00
Philipp Stracker
9f39a58f07
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-button/resources/js/modules/ContextBootstrap/CheckoutBootstap.js
#	modules/ppcp-button/resources/js/modules/Helper/CheckoutMethodState.js
2024-07-24 18:49:41 +02:00
Emili Castells Guasch
29e195e7f3 Ensure saved card payment use default payment flow for free trial subscriptions 2024-07-24 17:00:58 +02:00
Emili Castells Guasch
efbd36025d Add card payment token for free trial subscriptions (WIP) 2024-07-24 16:00:55 +02:00
Narek Zakarian
5d5dd761f8
Merge branch 'trunk' into PCP-3395-when-there-isnt-any-shipping-option-for-the-address-the-order-is-still-created-from-classic-cart 2024-07-24 16:04:32 +04:00
Narek Zakarian
4fc7883c28
Merge branch 'trunk' into PCP-3382-add-support-for-woo-commerce-bookings-when-skipping-checkout-confirmation
# Conflicts:
#	modules/ppcp-compat/services.php
#	modules/ppcp-compat/src/CompatModule.php
2024-07-24 15:19:32 +04:00
Philipp Stracker
eb216425fb
🚧 New Gateway for Apple Pay 2024-07-23 15:59:54 +02:00
Emili Castells
8df5b56d8a
Merge pull request #2420 from woocommerce/PCP-2958-multiple-smart-buttons-on-the-product-page-when-using-variable-product-with-pay-pal-subscriptions-mode
Prevent displaying smart button multiple times on variable product page (2958)
2024-07-23 14:29:58 +02:00
Narek Zakarian
d20b1b982f
Merge branch 'trunk' into PCP-3342-shipping-callback-compatibility-problem-with-name-your-price-plugin
# Conflicts:
#	modules/ppcp-button/src/Helper/WooCommerceOrderCreator.php
2024-07-23 16:15:20 +04:00
Emili Castells
f59b9532d5
Merge pull request #2431 from woocommerce/PCP-3394-the-taxes-are-included-incorrectly-for-programmatically-created-orders
Add tax configurator when programmatically creating WC orders (3394)
2024-07-23 12:57:32 +02:00
Narek Zakarian
2c6d84c32c
Add action to hook when WC order is created programmatically 2024-07-22 18:18:11 +04:00
Narek Zakarian
fe046ea48c
Add the missing argument 2024-07-18 20:19:33 +04:00
Narek Zakarian
15250e5a83
Redirect to continuation when error happens 2024-07-18 20:15:39 +04:00
Narek Zakarian
c3d46d89af
Add shipping option validation 2024-07-18 20:15:02 +04:00
Narek Zakarian
8f4fa3562b
Add tax configurator 2024-07-17 19:15:19 +04:00
Narek Zakarian
e7ece3d394
Fix the coding styles 2024-07-17 17:37:38 +04:00
Narek Zakarian
0e3c550082
Fix the coding styles 2024-07-17 17:29:13 +04:00
Narek Zakarian
af286c8f82
Add needs shipping to classic cart 2024-07-17 16:43:51 +04:00
Emili Castells Guasch
49064da0c8 Run eslint autofix 2024-07-17 11:08:49 +02:00
Emili Castells Guasch
db4787a360 Remove temp leftovers 2024-07-16 17:57:33 +02:00
Emili Castells Guasch
74f319dd82 Merge branch 'trunk' into PCP-3320-separate-google-pay-button-for-classic-checkout 2024-07-16 17:22:10 +02:00
Emili Castells Guasch
c941430b7d Show googlepay button conditionally 2024-07-16 16:45:32 +02:00
Emili Castells Guasch
e70891d359 Add googlepay wc gateway 2024-07-16 14:17:12 +02:00