Commit graph

4317 commits

Author SHA1 Message Date
Philipp Stracker
b85a16abda
♻️ Move button event dispatcher to helper file 2024-08-06 17:13:51 +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
Philipp Stracker
9da37a2cc6
Introduce new “isVisible” flag 2024-08-02 15:57:57 +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
Philipp Stracker
ef6632c85f
Add new isEligible flag
The flag is set once Google’s PaymentClient responds to the isReadyToPay() request and controls the rendering of the button
2024-07-30 12:50:41 +02:00
Philipp Stracker
8286085f59
♻️ Apply latest JS structure from ApplePay Gateway
- Partially addresses the known display bug
- Simplifies maintainance between both gateways
- Reduces component-internal redundancies
2024-07-29 21:16:53 +02:00
Philipp Stracker
8814b1f636
💡 Improve/adjust debug logging 2024-07-29 18:30:03 +02:00
Philipp Stracker
1e5b6d5a21
Improve debug-logging for GooglePayButton events
Implement same logic as we use for the ApplePayButton
2024-07-29 18:08:59 +02:00
Philipp Stracker
8afa7e34dc
🐛 Prevent duplicate payment button instances 2024-07-29 16:20:47 +02:00
Emili Castells Guasch
cf8eaba0a3 Run autofix code style 2024-07-23 14:36:22 +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
Emili Castells
a608e6381a
Merge pull request #2449 from woocommerce/PCP-3253-possible-type-error-in-2-8-0
Do not override `settings` property from `AbstractPaymentMethodType` base class
2024-07-23 14:28:52 +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
Emili Castells
2e44e11dbe
Merge pull request #2414 from woocommerce/PCP-2645-when-selecting-google-pay-as-a-payment-option-in-safari-a-developer-error-is-displayed
Google Pay: Fix the incorrect popup triggering (2645)
2024-07-23 12:57:00 +02:00
Emili Castells
b069705b0a
Merge pull request #2411 from woocommerce/PCP-3341-pay-pal-js-files-loaded-on-non-pay-pal-pages
PayPal js files loaded on non PayPal pages (3341)
2024-07-23 12:56:25 +02:00
Emili Castells
dc68a4dfde
Merge pull request #2425 from woocommerce/PCP-3378-pay-pal-declares-subscription-support-when-for-subscription-mode-is-set-disable-pay-pal-for-subscription
PayPal declares subscription support when for Subscription mode is set Disable PayPal for subscription (3378)
2024-07-23 12:55:49 +02:00
Emili Castells Guasch
3f02d8326a Do not override settings base class property 2024-07-22 16:25:35 +02:00
Emili Castells Guasch
467960f5a2 Revert webhook handling for now so psalm does not complain 2024-07-22 14:49:01 +02:00
Emili Castells Guasch
93506fe5b7 Revert webhook handling for now so psalm does not complain 2024-07-22 14:42:03 +02:00
Emili Castells Guasch
2249ebd811 Show settings tabs in googlepay gateway settings page 2024-07-22 14:35:11 +02:00
Emili Castells Guasch
86e0007ae6 Add gateway icon, title and description 2024-07-22 12:53:41 +02:00
Emili Castells Guasch
e592bbb47b Do not provide support for wc susbcriotions for now 2024-07-22 12:10:34 +02:00
Emili Castells Guasch
9b0bb2c8b4 Do not provide support for wc susbcriotions for now 2024-07-22 11:52:04 +02:00
Narek Zakarian
8f4fa3562b
Add tax configurator 2024-07-17 19:15:19 +04:00
Emili Castells Guasch
e547d7e097 Show button in PayPal gateway if Google Pay gateway is disabled 2024-07-17 16:39:53 +02:00
Emili Castells Guasch
39ffbaa6e7 Add googlepay and apm css classes to button wrapper 2024-07-17 15:23:10 +02:00
Emili Castells Guasch
40805c1a13 Add googlepay button to pay for order page 2024-07-17 15:16:58 +02:00
George Burduli
4f8dfb22e2
Don't declare ACDC subscriptions support when vaulting is disabled 2024-07-17 16:49:24 +04:00
Daniel Dudzic
f66e6aff99
Google Pay: Fix the context being stuck on mini-cart 2024-07-17 12:36:44 +02:00
Emili Castells Guasch
49064da0c8 Run eslint autofix 2024-07-17 11:08:49 +02:00
George Burduli
6d927ead36
Fix condition 2024-07-17 12:58:01 +04:00
George Burduli
3c23382c03
Don't declare Automatic Recurring Payments support when PayPal subscriptions mode is disabled 2024-07-17 12:53:11 +04:00
Emili Castells Guasch
db4787a360 Remove temp leftovers 2024-07-16 17:57:33 +02:00
Emili Castells Guasch
335f680344 Extract logic from gateway to modules 2024-07-16 17:51:02 +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
895cd5c4c1 Return payment method if it exist 2024-07-16 16:00:11 +02:00
Emili Castells Guasch
e70891d359 Add googlepay wc gateway 2024-07-16 14:17:12 +02:00
Daniel Dudzic
37ca92c57e
Fix the GooglePay button preview in the settings widget 2024-07-15 22:38:35 +02:00
Emili Castells Guasch
82f46baa16 Add button method for checkout context 2024-07-15 18:42:44 +02:00
Narek Zakarian
2f0b01ebcb
Fix the coding styles 2024-07-15 19:38:10 +04:00
Narek Zakarian
f643f9e1d7
Return the callback to fix the shipping options update process 2024-07-15 19:20:35 +04:00
Narek Zakarian
f9aa2b565d
Return the callback to fix the shipping options update process 2024-07-15 19:20:24 +04:00
Narek Zakarian
c5fd3a6cea
Use the WC STORE API endpoint constant and the home_url 2024-07-15 19:19:32 +04:00
Narek Zakarian
b5fa8972d0
Store the WC STORE API endpoint in constant 2024-07-15 19:18:51 +04:00
Emili Castells Guasch
473b286de0 Do not display googlepay button inside smart buttons in classic checkout if goolepay button is enabled 2024-07-15 16:13:12 +02:00