Commit graph

366 commits

Author SHA1 Message Date
Emili Castells Guasch
335f680344 Extract logic from gateway to modules 2024-07-16 17:51:02 +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
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
Emili Castells Guasch
f8ed3328a8 Dispaly googlepay payment method only if googlepay button is enabled 2024-07-15 15:56:35 +02:00
Philipp Stracker
07ec924c77
💄 Display the APM logo in dummy preview-buttons 2024-07-15 13:45:53 +02:00
Philipp Stracker
4cde024320
♻️ Consolidate the preview button’s CSS classes
Class names are now generated by the base class. This allows to remove a method from all derived classes
2024-07-15 13:18:07 +02:00
Philipp Stracker
7f9cbd6f58
🐛 Fix general preview button shape 2024-07-15 13:16:08 +02:00
Emili Castells Guasch
b173ca1f75 Add WC gateway 2024-07-15 13:06:00 +02:00
Emili Castells Guasch
311d513fbf Add WC gateway 2024-07-15 11:40:09 +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
Philipp Stracker
2da8b516ff
♻️ Code organization and cleanup
- Move base classes for the preview buttons into “Preview” folder
- Remove jQuery use inside those base classes
- Extract dummy button to own class
2024-07-12 19:02:21 +02:00
Philipp Stracker
534e412524
♻️ Extract preview classes to own files 2024-07-12 17:32:59 +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
Danny Dudzic
879831d487
Merge pull request #2390 from woocommerce/PCP-3313-can-not-pay-with-google-pay-from-block-cart-and-block-checkout-page
Google Pay: Fix issuse with data.paymentSource being undefined (3313)
2024-07-08 13:21:18 +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
964b9ac606
🔀 Merge branch 'trunk' 2024-07-03 11:05:43 +02:00
Emili Castells
6785ca9b06
Merge pull request #2372 from woocommerce/PCP-3250-apple-pay-and-google-pay-buttons-dont-appear-in-pay-pal-button-stack-on-multi-step-checkout
Apple Pay and Google Pay buttons don't appear in PayPal Button stack on multi-step Checkout (3250)
2024-07-02 11:05:09 +02:00
Philipp Stracker
0197896500
🥅 Catch several JS/API related preview issues 2024-07-01 15:25:06 +02:00
Philipp Stracker
d2f0cb1c31
♻️ Consolidate preview-HTML in a new setting type 2024-06-27 18:01:06 +02:00
Philipp Stracker
4c10c37782
♻️ Extract button-refresh logic to own helper file
- Exrtract repeat event-init logic to new helper file
- Remove the jQuery dependency
2024-06-26 18:16:54 +02:00
Philipp Stracker
5ed2f37bd4
Listeners for custom “refresh button” event 2024-06-26 17:57:45 +02:00
Philipp Stracker
0e6e079e40
💄 Fix Google Pay button style
Make the outline of the payment button visible
2024-06-25 12:52:33 +02:00
Philipp Stracker
c23129cb91
🐛 Render preview when enabling the button
Before this, the “is enabled” checkbox was not observed; enabling it did not cause a preview button to render, and required changing any other form field that was linked to the button

Also start to extract some logic to a new helper file.
2024-06-12 18:12:07 +02:00
Philipp Stracker
6ee4a40e18
🎨 Remove unnecessary condition 2024-06-12 15:47:31 +02:00
Philipp Stracker
f3f6765ac3
🐛 Hide disabled APM buttons in Standard Payments 2024-06-12 15:45:54 +02:00
Philipp Stracker
874ebbc7a0
🎨 Minor: Apply WP Code Style
- Consistent quote-style
- Insert missing semicolons in JS
- Fix some whitespaces
2024-06-12 15:31:33 +02:00
Philipp Stracker
cea292684b
🎨 Minor code structure changes 2024-06-12 11:27:59 +02:00
Philipp Stracker
aa9c02a786
♻️ Improve SDK loading in PreviewButtonManager 2024-06-11 15:58:43 +02:00
Philipp Stracker
4242a1fd90
🔥 Remove unused yarn package 2024-06-10 14:17:25 +02:00
Philipp Stracker
6f73e82d3e
Preview buttons can be static
When the current page does not contain any edit-fields for the current APM preview button, it enters “static” mode. Static buttons ignore most update requests, and render as they were defined during page load
2024-06-07 21:14:12 +02:00
Philipp Stracker
93f3e4e7ac
🦺 Add check for config that causes infinite loop 2024-06-07 21:12:34 +02:00
Philipp Stracker
33c6c06e85
🐛 Fix button specific config-preparation 2024-06-07 15:42:16 +02:00
Philipp Stracker
c03f83f2e5
Add Google Pay preview button to ACP tab
Note: `phpcbf` adjusted tons of whitespace.
2024-06-07 12:28:49 +02:00
Philipp Stracker
b1cc83b238
🔥 Remove old preview button code comment 2024-06-07 12:23:35 +02:00
Philipp Stracker
93c6b40abc
♻️ Clean up the Google Pay preview button code 2024-06-07 12:23:03 +02:00
Philipp Stracker
0b326fbaa9
🔥 Remove debug code 2024-06-05 18:40:01 +02:00
Philipp Stracker
d69fb5bc70
🐛 Load button preview JS on ACDC settings page
Renamed the DI service name; this service is only used in two places (APM modules), which were also updated.
2024-06-05 18:05:06 +02:00
Philipp Stracker
ebb1f6962f
♻️ Create generic base classes for preview buttons 2024-06-05 17:58:54 +02:00
Philipp Stracker
9342086f33
♻️ Refactor Google Pay preview button
Mainly, separate the preview code into three main parts:
- Configuration
- Button
- ButtonManager

Remove dependency from DOM structure
2024-06-04 22:10:37 +02:00
Philipp Stracker
d1a93a1b55
🎨 Isolate condition for preview buttons
This step makes it easier to refactor/update the logic in the next step.
2024-06-03 17:19:18 +02:00
Philipp Stracker
639ced5c91
🩹 Fix incorrect links to AP/GP payment settings
The settings button for Apple Pay and Google Pay now directs users to the correct tab and section.
2024-05-28 16:41:33 +02:00
Pedro Silva
161e933d39
Merge branch 'trunk' into modularity-module-migration
# Conflicts:
#	modules/ppcp-wc-gateway/src/WCGatewayModule.php
2024-04-19 11:59:28 +01:00
Pedro Silva
9cb63040d8
Merge branch 'trunk' into PCP-2347-new-feature-accelerated-checkout
# Conflicts:
#	modules.php
2024-04-12 10:22:47 +01:00