Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release branch for 8.5.0 #9693

Merged
merged 47 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
f76a017
Add new tracking events and update Stripe connect library (#9607)
dmallory42 Oct 21, 2024
51b94be
Remove unnecessary WC table css overrides to fix WC Analytics styling…
Jinksi Oct 22, 2024
1652cc9
npm script to update e2e-pw screenshots / snapshots (#9544)
shendy-a8c Oct 22, 2024
439c151
Fix WooPay duplicated Save my info section (#9531)
alefesouza Oct 22, 2024
6611bb1
Add risk level information to the Fraud & Risk meta box (#9515)
eduardoumpierre Oct 22, 2024
278acb7
Omit Test Mode badge in the Change payment method form (#9615)
danielmx-dev Oct 22, 2024
27c562b
Fix settings rendering on the Advanced Fraud Protection page (#9521)
eduardoumpierre Oct 22, 2024
e280f2a
Merge trunk v8.4.0 into develop
botwoo Oct 23, 2024
98f3467
Fix PMME appearance in checkout (#9621)
gpressutto5 Oct 25, 2024
b31fd14
Decoupled Multi-currency module (#9617)
ricardo Oct 26, 2024
b6adaad
Bump WC tested up to version 9.4.0 (#9634)
nagpai Oct 28, 2024
1e32cbe
Update cache key for composer dependencies (#9637)
achyuthajoy Oct 28, 2024
f9b976e
Add unit test for Capital Loans page of WP Admin (#9638)
mgascam Oct 28, 2024
c88ae5e
Refactor `loadStripe` for Express Checkouts (#9582)
asumaran Oct 28, 2024
8d8bee3
Add unit tests for disputed order notices of WP Admin (#9640)
mgascam Oct 29, 2024
d5819b0
Add support for allowedShippingCountries in Express Checkout Element …
asumaran Oct 29, 2024
a186e7f
Resolve compatibility issues with CustomSelectControl component style…
mordeth Oct 30, 2024
e1adde6
Fix single product page view tracks. (#9644)
brettshumaker Oct 30, 2024
8396b27
Introducing consistency in colors for deposits across pages (#8382)
naman03malhotra Oct 30, 2024
e1778b0
Register Expresss Checkout block only when enabled in the settings (#…
gpressutto5 Oct 31, 2024
ccff836
Respect BNPL limits_per_currency (country, min, max) (#9626)
mdmoore Oct 31, 2024
e672cc7
Fix WooPay button preview in plugin settings. (#9649)
rafaelzaleski Oct 31, 2024
d100c15
Add in-memory cache to DB cache to deal with DB write failures (#9639)
vladolaru Nov 1, 2024
dba2fc5
Remove Test Mode subheader from CC test instructions (#9656)
mdmoore Nov 1, 2024
19f1f26
Implement actual ECE buttons in Block editor (#9650)
cesarcosta99 Nov 1, 2024
68e4986
Avoid PHP warning when checking for StoreAPI requests (#9662)
vladolaru Nov 4, 2024
e42103b
fix: payment method icon alt text (#9648)
frosso Nov 4, 2024
3d745b1
Hide duplicate payment method warnings when Stripe gateway is disable…
mdmoore Nov 4, 2024
67f24e6
Remove unused multi-currency import (#9664)
mdmoore Nov 4, 2024
d741c61
Use @stripe/connect-js/pure (#9674)
ismaeldcom Nov 5, 2024
c061a08
Use 'Withdrawal' and 'Deducted' labels when referring to withdrawal d…
Jinksi Nov 6, 2024
ed04c34
Fix: BNPL payment methods should work when available in the Pay For O…
danielmx-dev Nov 6, 2024
636e1f0
update: payment method test mode label behavior (#9647)
frosso Nov 7, 2024
c580223
Fix multi-currency autoload issue when plugin gets updated (#9681)
ricardo Nov 7, 2024
4580c39
Enqueue order scripts for all available payment methods (#9678)
mgascam Nov 7, 2024
c7d817a
update: show LPM icon on order success page (#9684)
frosso Nov 7, 2024
c5d9463
Fix duplicate saving of 3DS card entry after checkout (#9679)
gpressutto5 Nov 7, 2024
716a80e
Record a tracks event when a merchant is redirected to a Stripe Capit…
Jinksi Nov 8, 2024
75a11d0
Add country-specific test card numbers for credit card testing (#9688)
timur27 Nov 8, 2024
daf79d5
Rename 'Deposit' to 'Payout' (feature branch) (#9606)
shendy-a8c Nov 10, 2024
0a26a8e
Update version and add changelog entries for release 8.5.0
github-actions[bot] Nov 10, 2024
747001c
Fix e2e test for 8.5.0 release (#9694)
nagpai Nov 11, 2024
4e466f8
Fix e2e test for 8.5.0 release (#9694)
nagpai Nov 11, 2024
0a46b88
Merge branch 'develop' into release/8.5.0
Nov 11, 2024
e7af00a
Payouts: Change spotlight notice illustration (#9701)
nagpai Nov 11, 2024
ebb14dd
Amend changelog entries for release 8.5.0
botwoo Nov 12, 2024
3020129
Bump up WordPress version in readme
Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/e2e/env-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ runs:
uses: actions/cache@v4
with:
path: ./vendor
key: ${{ runner.os }}-vendor-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}

# Cache node dependencies
- name: Cache node dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-repo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}

- name: "Set up PHP"
uses: ./.github/actions/setup-php
2 changes: 1 addition & 1 deletion .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
# setup PHP, but without debug extensions for reasonable performance
- name: "Set up PHP"
uses: ./.github/actions/setup-php
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
# setup PHP, but without debug extensions for reasonable performance
- uses: shivammathur/setup-php@v2
with:
Expand All @@ -54,7 +54,7 @@ jobs:
coverage: none
# run CI checks
- run: bash bin/run-ci-tests.bash

generate-wc-compat-beta-matrix:
name: "Generate the matrix for compatibility-woocommerce-beta dynamically"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
# setup PHP, but without debug extensions for reasonable performance
- uses: shivammathur/setup-php@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
# setup PHP, but without debug extensions for reasonable performance
- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/i18n-weekly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
- uses: actions/cache@v4
with:
path: ~/.npm/
Expand All @@ -33,7 +33,7 @@ jobs:
run: |
npm ci
npm run build

if [[ ! -f woocommerce-payments.zip ]]; then
echo "Failed to create release zip"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/js-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
- uses: actions/cache@v4
with:
path: ~/.npm/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
# setup PHP, but without debug extensions for reasonable performance
- name: "Set up PHP"
uses: ./.github/actions/setup-php
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
Expand Down
84 changes: 83 additions & 1 deletion assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,93 @@
padding-top: 2px;
}

/* WCPay Fraud Risk Level meta box */
.wcpay-fraud-risk-level {
border-bottom: 1px solid #ddd;
padding: 8px 12px;
}

.wcpay-fraud-risk-level > p {
margin: 0;
}

.wcpay-fraud-risk-level__title {
font-weight: 600;
}

.wcpay-fraud-risk-level__bar {
display: grid;
gap: 4px;
grid-template-columns: 50% auto;
margin: 6px 0 8px;
}

.wcpay-fraud-risk-level__bar::after,
.wcpay-fraud-risk-level__bar::before {
background-color: #bbb;
content: '';
border-radius: 4px;
height: 4px;
}

.wcpay-fraud-risk-level--normal .wcpay-fraud-risk-level__title {
color: #008a20;
}

.wcpay-fraud-risk-level--normal .wcpay-fraud-risk-level__bar {
grid-template-columns: 15% auto;
}

.wcpay-fraud-risk-level--normal .wcpay-fraud-risk-level__bar::before {
background-color: #008a20;
}

.wcpay-fraud-risk-level--elevated .wcpay-fraud-risk-level__title {
color: #b16202;
}

.wcpay-fraud-risk-level--elevated .wcpay-fraud-risk-level__bar {
grid-template-columns: 60% auto;
}

.wcpay-fraud-risk-level--elevated .wcpay-fraud-risk-level__bar::before {
background-color: #b16202;
}

.wcpay-fraud-risk-level--highest .wcpay-fraud-risk-level__bar::before {
background-color: #b32d2e;
}

.wcpay-fraud-risk-level--highest .wcpay-fraud-risk-level__bar {
grid-template-columns: 100% auto;
}

.wcpay-fraud-risk-level--highest .wcpay-fraud-risk-level__bar::before {
background-color: #b32d2e;
}

/* WCPay Fraud Risk Action meta box */
#wcpay-order-fraud-and-risk-meta-box div.inside {
margin-top: 0;
padding: 0;
}

.wcpay-fraud-risk-action {
padding: 8px 12px 12px;
}

.wcpay-fraud-risk-action > p {
margin: 0 0 6px;
}

.wcpay-fraud-risk-action > p:last-child {
margin-bottom: 0;
}

.wcpay-fraud-risk-meta-allow,
.wcpay-fraud-risk-meta-review,
.wcpay-fraud-risk-meta-blocked {
font-weight: 600;
font-size: 14px;
}

.wcpay-fraud-risk-meta-allow img {
Expand Down
6 changes: 3 additions & 3 deletions assets/css/success.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
align-items: center;
flex-wrap: wrap;
line-height: 1;
padding-top: 4px;
}

.wc-payment-gateway-method-logo-wrapper img {
margin-right: 0.5rem;
padding-top: 4px;
}

.wc-payment-gateway-method-logo-wrapper.wc-payment-bnpl-logo img {
max-height: 30px;
.wc-payment-gateway-method-logo-wrapper.wc-payment-lpm-logo img {
max-height: 26px;
}
6 changes: 3 additions & 3 deletions assets/css/success.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
align-items: center;
flex-wrap: wrap;
line-height: 1;
padding-top: 4px;
}

.wc-payment-gateway-method-logo-wrapper img {
margin-left: 0.5rem;
padding-top: 4px;
}

.wc-payment-gateway-method-logo-wrapper.wc-payment-bnpl-logo img {
max-height: 30px;
.wc-payment-gateway-method-logo-wrapper.wc-payment-lpm-logo img {
max-height: 26px;
}
34 changes: 34 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
*** WooPayments Changelog ***

= 8.5.0 - 2024-11-13 =
* Add - Add country-specific test card numbers for credit card testing
* Add - Add risk level information to the fraud and risk box on the order details page.
* Add - Add support for allowedShippingCountries in Express Checkout Element.
* Fix - Avoid PHP warnings for requests with an empty path.
* Fix - BNPL methods now work properly in Pay for Order when they are available. Default values are also provided when available.
* Fix - fix: payment method icon alt text
* Fix - Fix compatibility issues with CustomSelectControl component styles for WordPress 6.7
* Fix - Fix duplicate saving of 3DS card entry after checkout
* Fix - Fixed single product page view tracks when BNPL and PRB payment methods are inactive.
* Fix - Fix PMME appearance in checkout
* Fix - Fix settings display on the advanced fraud protection page.
* Fix - Fix WooPay button preview in plugin settings.
* Fix - Fix WooPay duplicated Save my info section.
* Fix - Include missing scripts that handle refunds for non credit card payments in the order details page.
* Fix - Introducing consistency in colors for deposits across pages
* Fix - Prevent dead space on product pages when no BNPL offers are available.
* Fix - Provide backwards-compatible method for retrieving the multi-currency instance.
* Fix - Register Expresss Checkout block only when enabled in the settings
* Fix - Remove unnecessary '.woocommerce-table' css overrides to fix WC Analytics styling and a11y issues
* Fix - Use 'Withdrawal' and 'Deducted' labels when referring to withdrawal deposits, to more accurately communicate the type of transaction that has occurred
* Update - Add in-memory cache fallback for our database-cached objects in case of database write failures.
* Update - Decoupled Multi-currency module from gateway dependencies.
* Update - Improvements to events during onboarding flow.
* Update - Refactor loadStripe for Express Checkouts.
* Update - Rename 'deposit' to 'payout' across various places in the WooPayments admin UI, docs and doc URLs.
* Update - update: payment method "test mode" label at checkout to be displayed only when payment method is selected
* Update - update: show LPM payment method icon on order success page
* Update - Use preview versions of the actual ECE buttons in the Block editor.
* Update - When tracking is enabled, send a tracks event when the merchant is redirected to a Stripe Capital offer.
* Dev - Add Jest tests for the disputed order notices
* Dev - Add unit tests for the Capital Loans page component.
* Dev - Bump WC tested up to version to 9.4.0

= 8.4.0 - 2024-10-23 =
* Add - Add test mode badge to classic checkout and add payment method.
* Add - Using Floating Labels with Stripe Appearance API for Blocks Checkout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import PaymentMethodCheckbox from '../../components/payment-methods-checkboxes/p
import { LoadableBlock } from '../../components/loadable';
import LoadableSettingsSection from '../../settings/loadable-settings-section';
import CurrencyInformationForMethods from './currency-information-for-methods';
import { getMissingCurrenciesTooltipMessage } from 'wcpay/multi-currency/missing-currencies-message';
import { getMissingCurrenciesTooltipMessage } from 'multi-currency/interface/functions';
import { upeCapabilityStatuses, upeMethods } from '../constants';
import paymentMethodsMap from '../../payment-methods-map';
import ConfirmPaymentMethodActivationModal from 'wcpay/settings/payment-methods-list/activation-modal';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import interpolateComponents from '@automattic/interpolate-components';
/**
* Internal dependencies
*/
import { useAccountDomesticCurrency } from '../../data';
import {
useAccountDomesticCurrency,
useCurrencies,
useEnabledCurrencies,
} from '../../data';
} from 'multi-currency/interface/data';
import WCPaySettingsContext from '../../settings/wcpay-settings-context';
import InlineNotice from 'components/inline-notice';
import PaymentMethodsMap from '../../payment-methods-map';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,31 @@ import {
useEnabledPaymentMethodIds,
useGetPaymentMethodStatuses,
useSettings,
useCurrencies,
useEnabledCurrencies,
useManualCapture,
useAccountDomesticCurrency,
} from '../../../data';
import {
useCurrencies,
useEnabledCurrencies,
} from 'multi-currency/interface/data';

import WCPaySettingsContext from '../../../settings/wcpay-settings-context';
import { upeCapabilityStatuses } from 'wcpay/additional-methods-setup/constants';

jest.mock( '../../../data', () => ( {
useGetAvailablePaymentMethodIds: jest.fn(),
useEnabledPaymentMethodIds: jest.fn(),
useSettings: jest.fn(),
useCurrencies: jest.fn(),
useEnabledCurrencies: jest.fn(),
useGetPaymentMethodStatuses: jest.fn(),
useManualCapture: jest.fn(),
useAccountDomesticCurrency: jest.fn(),
} ) );

jest.mock( 'multi-currency/interface/data', () => ( {
useCurrencies: jest.fn(),
useEnabledCurrencies: jest.fn(),
} ) );

jest.mock( '@wordpress/a11y', () => ( {
...jest.requireActual( '@wordpress/a11y' ),
speak: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@ import { render, screen } from '@testing-library/react';
/**
* Internal dependencies
*/
import { useAccountDomesticCurrency } from '../../../data';
import {
useCurrencies,
useEnabledCurrencies,
useAccountDomesticCurrency,
} from 'wcpay/data';
} from 'multi-currency/interface/data';
import CurrencyInformationForMethods from '../currency-information-for-methods';
import WCPaySettingsContext from '../../../settings/wcpay-settings-context';

jest.mock( 'wcpay/data', () => ( {
jest.mock( '../../../data', () => ( {
useAccountDomesticCurrency: jest.fn(),
} ) );

jest.mock( 'multi-currency/interface/data', () => ( {
useCurrencies: jest.fn(),
useEnabledCurrencies: jest.fn(),
useAccountDomesticCurrency: jest.fn(),
} ) );

jest.mock( '@wordpress/a11y', () => ( {
Expand Down
16 changes: 16 additions & 0 deletions client/additional-methods-setup/wizard/task-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,22 @@
}
}

&__visible-description-element {
position: absolute;
margin-left: 40px;
margin-top: 0;
margin-bottom: 1em;

&.is-muted-color {
color: $gray-700;
}

.components-external-link svg {
width: 1em;
height: 1em;
}
}

.add-payment-methods-task {
&__payment-selector {
&-wrapper {
Expand Down
Loading
Loading