Skip to content

Commit 33903e4

Browse files
committed
Merge release/8.2.0 into trunk
2 parents 3bd851c + 823a59c commit 33903e4

File tree

135 files changed

+4131
-2113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+4131
-2113
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
woocommerce: [ 'latest' ]
1919
wordpress: [ 'latest' ]
20-
php: [ '7.4' ]
20+
php: [ '7.4', '8.1' ]
2121
directory: [ 'includes', 'src' ]
2222
env:
2323
WP_VERSION: ${{ matrix.wordpress }}
@@ -36,6 +36,6 @@ jobs:
3636
with:
3737
php-version: ${{ matrix.php }}
3838
tools: composer
39-
coverage: xdebug2
39+
coverage: xdebug
4040
# run CI checks
4141
- run: bash bin/run-ci-tests-check-coverage.bash

assets/images/icons/copy.svg

Lines changed: 1 addition & 0 deletions
Loading

bin/check-test-coverage.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ docker compose exec -u www-data wordpress \
1717

1818
echo "Checking coverage..."
1919

20-
docker compose exec -u www-data wordpress \
21-
php -d xdebug.remote_autostart=on \
22-
/var/www/html/wp-content/plugins/woocommerce-payments/vendor/bin/phpunit \
23-
--configuration "/var/www/html/wp-content/plugins/woocommerce-payments/$CONFIGURATION_FILE" \
24-
--coverage-html /var/www/html/php-test-coverage \
25-
--coverage-clover /var/www/html/clover.xml
20+
docker-compose exec -u www-data wordpress \
21+
/var/www/html/wp-content/plugins/woocommerce-payments/vendor/bin/phpunit \
22+
--configuration "/var/www/html/wp-content/plugins/woocommerce-payments/$CONFIGURATION_FILE" \
23+
--coverage-html /var/www/html/php-test-coverage \
24+
--coverage-clover /var/www/html/clover.xml
2625

2726
./vendor/bin/coverage-check docker/wordpress/clover.xml $COVERAGE

bin/run-tests.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ if $WATCH_FLAG; then
2424
# Change directory to WooCommerce Payments' root in order to have access to .phpunit-watcher.yml
2525
docker compose exec -u www-data wordpress bash -c \
2626
"cd /var/www/html/wp-content/plugins/woocommerce-payments && \
27-
php -d xdebug.remote_autostart=on \
2827
./vendor/bin/phpunit-watcher watch --configuration ./phpunit.xml.dist $*"
2928
else
3029
echo "Running the tests..."
3130

32-
docker compose exec -u www-data wordpress \
33-
php -d xdebug.remote_autostart=on \
31+
docker-compose exec -u www-data wordpress \
3432
/var/www/html/wp-content/plugins/woocommerce-payments/vendor/bin/phpunit \
3533
--configuration /var/www/html/wp-content/plugins/woocommerce-payments/phpunit.xml.dist \
3634
$*

changelog.txt

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
*** WooPayments Changelog ***
22

3+
= 8.2.0 - 2024-09-11 =
4+
* Add - add: test instructions icon animation
5+
* Add - Added Embdedded KYC, currently behind feature flag.
6+
* Fix - Avoid unnecessary account data cache refresh on WooPayments pages refresh.
7+
* Fix - Check payment method is available before rendering it.
8+
* Fix - Disables custom checkout field detection due to compatibility issues and false positives.
9+
* Fix - Disables testing instructions clipboard button on HTTP sites when navigator.clipboard is undefined.
10+
* Fix - fix: missing translations on testing instructions.
11+
* Fix - fix: platform_global_theme_support_enabled undefined index
12+
* Fix - fix: testing instructions dark theme support
13+
* Fix - Fix caching with tracking cookie.
14+
* Fix - Fixed an issue where the Connect page would scroll to the top upon clicking the Enable Sandbox Mode button.
15+
* Fix - Fixed default borderRadius value for the express checkout buttons
16+
* Fix - Fix shipping rates retrieval method for shortcode cart/checkout.
17+
* Fix - Fix support for merchant site styling when initializing WooPay via classic checkout
18+
* Fix - Fix WooPay direct checkout.
19+
* Fix - Handle loadError in ECE for Block Context Initialization.
20+
* Fix - Move woopay theme support checkbox to the appearance section.
21+
* Fix - Pass appearance data when initiating WooPay via the email input flow
22+
* Fix - Prevent preload of BNPL messaging if minimum order amount isn't hit.
23+
* Fix - Redirect user to WooPay OTP when the email is saved.
24+
* Fix - Remove obsolete ApplePay warning on wp-admin for test sites.
25+
* Fix - Update cache after persisting the User session via WooPay
26+
* Fix - Updates test mode instructions copy for cards at checkout.
27+
* Update - update: payment method fees in one line
28+
* Update - Update Jetpack packages to the latest versions
29+
* Dev - Fix failing e2e tests for saved cards.
30+
* Dev - Fix Klarna product page message E2E test after the contents inside the iframe were updated.
31+
* Dev - Migrate Klarna E2E tests to playwright. Reduce noise in E2E tests console output.
32+
* Dev - Migrate multi-currency e2e tests to Playwright.
33+
334
= 8.1.1 - 2024-08-29 =
435
* Fix - Ensure 55px is the maximum height for Apple Pay button.
536
* Fix - Fixed sandbox mode accounts being able to disable test mode for the payment gateway settings.
@@ -24,7 +55,6 @@
2455
* Fix - Fix uncaught error on the block based Cart page when WooPayments is disabled.
2556
* Fix - Fix WooPay checkboxes while signed in.
2657
* Fix - If a payment method fails to be created in the frontend during checkout, forward the errors to the server so it can be recorded in an order.
27-
* Fix - Migrate to Docker Compose V2 for test runner environment setup scripts
2858
* Fix - Reverts changes related to Direct Checkout that broke the PayPal extension.
2959
* Fix - Translate hardcoded strings on the Connect page
3060
* Update - refactor: separate BNPL methods from settings list
@@ -36,6 +66,7 @@
3666
* Dev - Match the Node version in nvm with the minimum version in package.json.
3767
* Dev - Remove unnecessary console.warn statements added in #9121.
3868
* Dev - Update bundle size checker workflow to support node v20
69+
* Dev - Migrate to Docker Compose V2 for test runner environment setup scripts
3970

4071
= 8.0.2 - 2024-08-07 =
4172
* Fix - Add opt-in checks to prevent blocking customers using other payment methods.

changelog/update-e2e-setup-script

Lines changed: 0 additions & 5 deletions
This file was deleted.

changelog/update-e2e-setup-script-env-var

Lines changed: 0 additions & 5 deletions
This file was deleted.

client/checkout/blocks/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import { handleWooPayEmailInput } from '../woopay/email-input-iframe';
4444
import { recordUserEvent } from 'tracks';
4545
import wooPayExpressCheckoutPaymentMethod from '../woopay/express-button/woopay-express-checkout-payment-method';
4646
import { isPreviewing } from '../preview';
47+
import '../utils/copy-test-number';
4748

4849
const upeMethods = {
4950
card: PAYMENT_METHOD_NAME_CARD,

client/checkout/blocks/payment-elements.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const PaymentElements = ( { api, ...props } ) => {
9090
errorMessage={ errorMessage }
9191
fingerprint={ fingerprint }
9292
onLoadError={ setPaymentProcessorLoadErrorMessage }
93+
theme={ appearance?.theme }
9394
{ ...props }
9495
/>
9596
</Elements>

client/checkout/blocks/payment-processor.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from '@woocommerce/blocks-registry';
1313
import { __ } from '@wordpress/i18n';
1414
import { useEffect, useRef } from 'react';
15+
import classNames from 'classnames';
1516

1617
/**
1718
* Internal dependencies
@@ -64,6 +65,7 @@ const PaymentProcessor = ( {
6465
shouldSavePayment,
6566
fingerprint,
6667
onLoadError = noop,
68+
theme,
6769
} ) => {
6870
const stripe = useStripe();
6971
const elements = useElements();
@@ -267,7 +269,9 @@ const PaymentProcessor = ( {
267269
<>
268270
{ isTestMode && (
269271
<p
270-
className="content"
272+
className={ classNames( 'content', {
273+
[ `theme--${ theme }` ]: theme,
274+
} ) }
271275
dangerouslySetInnerHTML={ {
272276
__html: testingInstructions,
273277
} }

0 commit comments

Comments
 (0)