Commit graph

54 commits

Author SHA1 Message Date
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
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 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
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
Emili Castells Guasch
82f46baa16 Add button method for checkout context 2024-07-15 18:42:44 +02:00
Daniel Dudzic
6a91e422eb
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into PCP-2645-when-selecting-google-pay-as-a-payment-option-in-safari-a-developer-error-is-displayed 2024-07-15 11:31:48 +02:00
Daniel Dudzic
8b43a06f9f
Fix JS linting 2024-07-15 11:21:56 +02:00
Daniel Dudzic
525fee7edd
Remove the redundant async 2024-07-15 10:58:03 +02:00
Daniel Dudzic
4b8843d93d
Google Pay: Fix the incorrect popup triggering (2645) 2024-07-12 13:49:50 +02:00
Emili Castells Guasch
11105d913b Run eslint autofix 2024-07-12 12:58:34 +02:00
Daniel Dudzic
e1bdc64248
Google Pay: Fix issuse with data.paymentSource being undefined and the shipping allowed boolean being hardcoded 2024-07-03 12:29:29 +02:00
Philipp Stracker
93f3e4e7ac
🦺 Add check for config that causes infinite loop 2024-06-07 21:12:34 +02:00
Pedro Silva
9bf23550dd
Insights preparation. 2024-04-11 17:14:22 +01:00
Pedro Silva
83a53ee223
Fix button margins on separate gateways 2023-12-15 17:11:16 +00:00
Pedro Silva
ec0dd5221d
Adjustments to apm button layouts. 2023-12-11 17:14:43 +00:00
Pedro Silva
46c575a401
Fix apm button styling 2023-12-07 18:20:58 +00:00
Alex P
ea35893a82
Fix method id check 2023-11-23 08:46:48 +02:00
Alex P
018ba0de3e
Handle block google/apple buttons height 2023-11-22 17:27:21 +02:00
Pedro Silva
24f98cd038
Disabled GooglePay and ApplePay on locations with subsciption products. 2023-11-13 17:36:18 +00:00
Pedro Silva
b11a539c24
Refactor styles loading on GooglePay and ApplePay
Remove unnecessary console.log on GooglePay and ApplePay
2023-10-19 18:44:44 +01:00
Pedro Silva
d86a1dd050
Fix removed redundant code 2023-10-17 10:50:38 +01:00
Pedro Silva
84e4c2c40a
Fix GooglePay mini-cart button loading
Fix GooglePay shipping callback
Fix GooglePay button on cart updates
2023-10-17 10:47:26 +01:00
Pedro Silva
8526adbcee
Add GooglePay shipping support. 2023-10-13 14:36:11 +01:00
Pedro Silva
799e06a7dd
Add cart simulation adjustments 2023-10-13 10:04:17 +01:00
Pedro Silva
7d1f8b5187
Refactor options for release preparation 2023-10-12 15:27:55 +01:00
Pedro Silva
387d677a05
Add shipping callback 2023-10-11 18:55:42 +01:00
Pedro Silva
c30ddd3b64
Add GooglePay shipping support 2023-09-29 18:10:06 +01:00
Pedro Silva
eeaf38e4c4
Add GooglePay shipping option 2023-09-28 18:04:46 +01:00
Pedro Silva
ad08480b67
Add GooglePay shipping support POC 2023-09-28 09:32:09 +01:00
Pedro Silva
08d8cded5b
Add GooglePlay preview in admin settings. 2023-09-21 11:58:51 +01:00
Pedro Silva
c3e5d21e75
Add GooglePay button language/locale 2023-09-12 18:09:58 +01:00
Pedro Silva
9e5e380424
Fix incompatible types. 2023-09-11 10:32:46 +01:00
Pedro Silva
1a93df9f50
Check and removing GooglePay TODOs 2023-09-11 10:11:40 +01:00
Pedro Silva
570145e1d3
Add GooglePay button fixes 2023-09-07 16:49:22 +01:00
Pedro Silva
a3ee77a4bc
Add support for hiding/showing/enabling/disabling GooglePay buttons 2023-09-07 11:21:58 +01:00
Pedro Silva
c6379ca980
Refactor GooglePay contect handlers to reuse action handlers. 2023-09-06 17:54:08 +01:00
Pedro Silva
318217acb9
Fix GooglePay general fixes / improvements 2023-09-06 11:55:26 +01:00
Pedro Silva
0ac4089bec
Add GooglePay validations 2023-08-31 17:38:23 +01:00