Commit graph

4346 commits

Author SHA1 Message Date
Philipp Stracker
8c811d9f8e
🥅 Improve code stability and documentation 2024-08-07 15:45:28 +02:00
Philipp Stracker
7c8c9429e0
🐛 Fix Google Pay button on non-checkout pages
Reflect changes of PR #2495
2024-08-07 15:19:34 +02:00
Philipp Stracker
429568fbd9
🔥 Minor cleanup 2024-08-07 14:48:36 +02:00
Philipp Stracker
4b30449ddb
🩹 ConsoleLogger will always output error messages 2024-08-07 14:36:51 +02:00
Philipp Stracker
31867b17d6
🔀 Merge branch 'trunk'
# Conflicts:
#	modules/ppcp-googlepay/resources/js/GooglepayButton.js
2024-08-07 14:30:12 +02:00
Emili Castells
3d5c15b343
Merge pull request #2492 from woocommerce/PCP-3517-apple-pay-shipping-callback-is-not-working
Apple Pay: Fix the shipping callback (3517)
2024-08-07 13:56:32 +02:00
Emili Castells Guasch
939991c42f Revert #2283 2024-08-07 12:47:11 +02:00
Emili Castells Guasch
7778cfafed Revert #2283 2024-08-07 12:45:44 +02:00
Emili Castells Guasch
4f47b382c5 Add token expiration 2024-08-07 10:36:05 +02:00
Emili Castells Guasch
8411ef2106 Fix not returning the cached token 2024-08-07 09:51: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
Emili Castells Guasch
a1413782e9 Invalidate cache when switching user 2024-08-06 12:32:40 +02:00
Emili Castells Guasch
22c2b5afd4 Delete transients stored while user is logged in 2024-08-06 12:04:58 +02:00
Emili Castells Guasch
c68db5c1a1 Fix phpcs 2024-08-06 11:35:28 +02:00
Daniel Dudzic
bc58fce8a0
Apple Pay: Fix the shipping callback 2024-08-06 10:56:37 +02:00
Emili Castells Guasch
54657ed649 Add tokens cache 2024-08-06 10:44:54 +02:00
Emili Castells Guasch
bea17db588 Use client credentials 2024-08-06 09:25:28 +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
Emili Castells
a152027772
Merge pull request #2471 from woocommerce/PCP-3494-tax-rate-id-and-tax-amount-visible-on-order-received-page-when-shipping-callback-is-enabled-and-payment-is-done-from-product-page-mini-cart-or-classic-cart-page
Do not add tax info into order meta during order creation
2024-07-30 17:07:21 +02:00
Emili Castells
9fbeaf56be
Merge pull request #2474 from woocommerce/PCP-3493-validation-on-classic-checkout-page-automatically-triggered-when-google-pay-is-enabled
Google Pay: Prevent field validation from being triggered on checkout page load (3493)
2024-07-30 17:06:44 +02:00
Emili Castells
4ac1f4e40c
Merge pull request #2468 from woocommerce/PCP-3488-add-apple-pay-google-pay-support-for-china
Add Apple Pay and Google Pay support for China, simplify country-currency matrix (3488)
2024-07-30 17:06:08 +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
Daniel Dudzic
a301d901dd
Google Pay: Update the formValidator name 2024-07-30 10:31:44 +02:00
Daniel Dudzic
5ad73cf5f0
Google Pay: Prevent field validation from being triggered on checkout page load 2024-07-30 10:24:26 +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
Narek Zakarian
a7c43ab0d1
Do not add tex info into order meta during order creation 2024-07-29 15:55:29 +04:00
George Burduli
06378c34c8
Add Amex support for ACDC China 2024-07-29 14:15:35 +04:00
George Burduli
5252888721
phpcs fix 2024-07-29 13:29:48 +04:00
George Burduli
883a5b15bc
Add China to ApplePay support, simplify country-currency matrix 2024-07-29 13:28:33 +04:00
George Burduli
a06c01ad1f
phpcs fix 2024-07-29 13:13:56 +04:00
George Burduli
548c0082eb
Add China to GPay support, simplify country-currency matrix 2024-07-29 13:11:54 +04: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