Commit graph

4531 commits

Author SHA1 Message Date
Emili Castells Guasch
e66d733ef5 Remove redundant comments 2024-07-05 16:44:34 +02:00
Emili Castells Guasch
84f138a28d Move wc subscriptions support to ppcp-wc-subscriptions module and remove conditionals based on setting enabled 2024-07-05 16:21:16 +02:00
Emili Castells
32a18e6ff4
Merge pull request #2384 from woocommerce/PCP-3170-add-es-lint-and-testing-library-for-js-code
Add ESLint and Testing Library for JS code (3170)
2024-07-05 12:38:36 +02:00
Emili Castells
da49ceefdb
Merge pull request #2371 from woocommerce/PCP-3286-pay-later-button-preview-are-missing
Pay Later button preview is missing (3286)
2024-07-04 09:29:07 +02:00
Daniel Dudzic
6a2c433484
Fix Apple Pay when shipping is disabled 2024-07-03 16:39:46 +02:00
Emili Castells
caea2ceb3e
Merge pull request #2385 from woocommerce/PCP-3296-loading-of-non-order-as-a-wc-order-causes-warnings-and-potential-data-corruption
Use `wc_get_order` to retrieve the order
2024-07-03 14:34:39 +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 Guasch
fef4566f52 Merge branch 'trunk' into PCP-3170-add-es-lint-and-testing-library-for-js-code 2024-07-03 10:54:51 +02:00
Emili Castells
6bd938a177
Merge pull request #2381 from woocommerce/PCP-3319-remove-bcdc-button-from-block-express-checkout-area
Remove BCDC button from block Express Checkout area (3319)
2024-07-02 17:43:15 +02:00
Emili Castells Guasch
78bbc1fd67 Remove psalm comments 2024-07-02 17:38:25 +02:00
Philipp Stracker
6efcaa5630
New option to configure BN-Code
Configurable via a wp-config constant, or a new wp-filter.
2024-07-02 16:10:10 +02:00
Daniel Dudzic
d253aa44fe
Improve Place Order button styling 2024-07-02 13:07:39 +02:00
Emili Castells Guasch
ab02026816 Use wc_get_order to retrieve the order 2024-07-02 11:19:59 +02:00
Emili Castells
ee3bff88bc
Merge pull request #2374 from woocommerce/PCP-3324-remove-empty-venmo-express-button-container
Remove shipping callback for Venmo express button (3324)
2024-07-02 11:07:01 +02:00
Emili Castells
65ac5dc975
Merge pull request #2369 from woocommerce/PCP-3314-pay-pal-package-tracking-not-to-break-orders-screen-when-there-is-an-exception-for-package-tracking
Don't break orders screen when there is an exception for package tracking (3314)
2024-07-02 11:05:46 +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
Emili Castells
4897193669
Merge pull request #2367 from woocommerce/PCP-3237-fix-apple-pay-button-layout
Fix Apple Pay button layout (3237)
2024-07-02 11:04:19 +02:00
Emili Castells Guasch
4c05e7c2bd Merge branch 'trunk' into PCP-3170-add-es-lint-and-testing-library-for-js-code 2024-07-01 17:29:03 +02:00
Emili Castells
34245a852b
Merge pull request #2379 from woocommerce/PCP-3327-remove-giropay-references-due-to-deprecation
Remove Giropay references due to deprecation (3327)
2024-07-01 15:39:45 +02:00
Emili Castells
e7f2d33623
Merge pull request #2377 from woocommerce/PCP-3309-check-available-features-this-button-is-non-functional
Enable the gateway settings JS file on connection tab (3309)
2024-07-01 15:39:05 +02:00
Philipp Stracker
0197896500
🥅 Catch several JS/API related preview issues 2024-07-01 15:25:06 +02:00
Philipp Stracker
5307225ef3
🐞 Fix JS error during PayLater preview
Incorrect selector for `payLaterButtonPreview` caused the preview to fail when the “Enable Pay Later Button” was unchecked during page load.
2024-07-01 14:12:31 +02:00
Philipp Stracker
c0e3dd7be0
🐛 Hide the PayLater preview when using Vaultig 2024-07-01 14:02:22 +02:00
Emili Castells Guasch
59d0ae943e Ensure purchase units payments is not null before usign it 2024-07-01 12:40:42 +02:00
Philipp Stracker
a1562ff0f3
🔥 Remove deprecated giropay reference 2024-06-28 18:36:38 +02:00
Emili Castells Guasch
7be9a7751a Ensure express card button is not rendered when advanced card gateway is enabled 2024-06-28 17:20:16 +02:00
Emili Castells Guasch
0e6f6bfc97 Add unit tests 2024-06-28 16:28:57 +02:00
Emili Castells Guasch
43f4d15cea Extract disabled funding sources logic into a new class 2024-06-28 14:47:23 +02:00
Narek Zakarian
034d21da6f
Enable the gateway settings JS file on connection tab. 2024-06-28 16:04:23 +04:00
Philipp Stracker
2e07b0f6c0
🚨 Fix reported CI error 2024-06-28 11:47:05 +02:00
Emili Castells Guasch
a08ce87839 Ensure shipping callback is removed from venmo button 2024-06-28 11:27:34 +02:00
Philipp Stracker
f606b87c85
💄 Complete rewrite of the preview box styling
Original styling designed for one use case (variable number of buttons, floating on the far right side).

Meanwhile we have multiple preview boxes, displaying, a fixed or variable amount of buttons; some preview boxes are also positioned inside a “frame” that requires custom padding and responsive checks.
2024-06-27 19:42:39 +02:00
Philipp Stracker
d1318d7247
Add preview button eligibility check 2024-06-27 18:32:31 +02:00
Philipp Stracker
d2f0cb1c31
♻️ Consolidate preview-HTML in a new setting type 2024-06-27 18:01:06 +02:00
Philipp Stracker
dcd8307118
♻️ Optional init value for trigger selector 2024-06-26 18:54:09 +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
25c5ef2e9e
New helper to monitor multistep checkout forms
The new script adds an interval to monitor the visibility of the “woocommerce-checkout-payment” element to initialize payment buttons with a delay, if needed.
2024-06-26 17:56:48 +02:00
Philipp Stracker
4214821eb1
🔥 Remove unused dependencies
Left overs from PCP-3179
2024-06-25 16:40:05 +02:00
Narek Zakarian
8d48e7ffff
Log the error if problem getting tracking info 2024-06-25 18:39:23 +04:00
Philipp Stracker
f95bf333df
🐛 Load the preview button logic on Pay Later tab 2024-06-25 16:38:27 +02:00
Narek Zakarian
d36e230f78
Merge branch 'trunk' into PCP-3314-pay-pal-package-tracking-not-to-break-orders-screen-when-there-is-an-exception-for-package-tracking 2024-06-25 16:27:36 +04:00
Narek Zakarian
b1ec5e3d8f
Add logger 2024-06-25 16:23:57 +04:00
Emili Castells
fb4f4cb753
Merge pull request #2360 from woocommerce/PCP-3289-could-not-retrieve-order-error-in-package-tracking-metabox-breaking-wc-order
Don't render tracking metaBox if can't retrieve PayPal order (3289)
2024-06-25 14:01:00 +02:00
Philipp Stracker
9bdd9b5c16
💄 Fix the Apple Pay button layout
“White with outline” correctly displays the outline
2024-06-25 13:09:36 +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
Emili Castells Guasch
429e7b99a4 Remove card fields test for now 2024-06-22 16:51:56 +02:00
Emili Castells Guasch
d3cad1105a Add test for checkout handler component 2024-06-22 16:11:00 +02:00
Emili Castells Guasch
986918f86b Add test for checkout handler component 2024-06-22 15:53:46 +02:00