Commit graph

6397 commits

Author SHA1 Message Date
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
Emili Castells Guasch
7b22040710 Add module boilerplate 2024-08-08 12:43:29 +02:00
Emili Castells Guasch
c70fb24bdb Merge branch 'trunk' into PCP-3317-implement-ap-ms-via-orders-api 2024-08-08 11:58:33 +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
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
Emili Castells
f96293542a
Merge pull request #2495 from woocommerce/PCP-3493-validation-on-classic-checkout-page-automatically-triggered-when-google-pay-is-enabled-rc2
Fix Google Pay button on non-checkout pages (#3493)
2024-08-07 15:16:31 +02:00
Philipp Stracker
e41470b159
🐛 Fix Google Pay button on non-checkout pages 2024-08-07 15:01:27 +02:00
Philipp Stracker
429568fbd9
🔥 Minor cleanup 2024-08-07 14:48:36 +02:00
Emili Castells
44fde3c703
Merge pull request #2494 from woocommerce/release/2.8.3-rc1
Release 2.8.3-rc1
2024-08-07 14:42:45 +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 Guasch
c0bd7a5c46 Release 2.8.3-rc1 2024-08-07 14:24:44 +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
ff4cd0c9a4
Merge pull request #2491 from woocommerce/use-client-credentials-for-user-tokens
Use client credentials for user tokens (3518)
2024-08-07 13:55: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
Emili Castells Guasch
86860d4fd6 Fix phpunit 2024-08-06 11:23:50 +02:00
Emili Castells Guasch
9c380917c5 Fix phpunit 2024-08-06 11:14:46 +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
Emili Castells Guasch
2edeac5544 Add new create order endpoint (WIP) 2024-08-05 17:36:56 +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 Guasch
2815fcbb91 Fix phpcs 2024-08-02 15:24:26 +02:00
Daniel Dudzic
fe8101699f
Fix the PayPal enabled settings key 2024-08-02 12:30:39 +02:00
Danny Dudzic
70fe162cd2
Merge pull request #2434 from woocommerce/PCP-3075-fastlane-gateway-displayed-when-enable-pay-pal-features-for-your-store-is-not-checked
AXO: Ensure Fastlane scripts do not load when PayPal is disabled (3075)
2024-08-01 23:09:57 +02:00
Danny Dudzic
0e401e25af
Merge pull request #2424 from woocommerce/PCP-3156-fastlane-strip-empty-spaces-from-email-to-trigger-profile-lookup
AXO: Add whitespace stripping on submission (3156)
2024-08-01 23:09:29 +02:00
Danny Dudzic
f509f61bdd
Merge pull request #2480 from woocommerce/PCP-3489-fastlane-display-notice-when-advanced-card-processing-gateway-is-disabled
Fastlane display notice when Advanced Card Processing gateway is disabled (3489)
2024-08-01 23:08:07 +02:00
Daniel Dudzic
61865a3b7a
Merge branch 'fastlane' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3489-fastlane-display-notice-when-advanced-card-processing-gateway-is-disabled 2024-08-01 22:58:28 +02:00
Danny Dudzic
64fd1342a1
Merge pull request #2461 from woocommerce/PCP-3474-fastlane-create-notice-about-potentially-incompatible-plugins
AXO: Add a notice when incompatible plugins are active (3474)
2024-08-01 22:57:41 +02:00
Daniel Dudzic
f98bd052ed
Merge branch 'fastlane' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3474-fastlane-create-notice-about-potentially-incompatible-plugins 2024-08-01 22:46:29 +02:00
Danny Dudzic
fc5d50a72e
Merge pull request #2432 from woocommerce/PCP-3392-do-not-render-fastlane-when-shipping-destination-is-set-to-force-shipping-to-the-customer-billing-address
AXO: Add warning when shipping config is not compatible (3392)
2024-08-01 22:45:07 +02:00
Daniel Dudzic
59e6dea5c7
Merge branch 'fastlane' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3392-do-not-render-fastlane-when-shipping-destination-is-set-to-force-shipping-to-the-customer-billing-address 2024-08-01 22:31:39 +02:00
Daniel Dudzic
6c4c31fbf0
AXO: Fix the main notice key in the display manager 2024-08-01 22:25:46 +02:00
Daniel Dudzic
70f5b60aee
Merge branch 'fastlane' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3474-fastlane-create-notice-about-potentially-incompatible-plugins 2024-08-01 22:11:21 +02:00