Skip to content

Commit 6f3b87c

Browse files
Merge release/9.7.0 into trunk
2 parents 5ea3e7f + c05150a commit 6f3b87c

File tree

357 files changed

+8255
-6926
lines changed

Some content is hidden

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

357 files changed

+8255
-6926
lines changed

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@
102102
{
103103
"selector": "ImportDeclaration[source.value=/gridicons(?!\\u002F)/]",
104104
"message": "Do not import whole Gridicons, import them individually with 'gridicons/dist/icon-name'."
105+
},
106+
{
107+
"selector": "ImportDeclaration[source.value='@wordpress/components']",
108+
"message": "Do not import from '@wordpress/components' directly. Use components from 'wcpay/components/wp-components-wrapped' instead."
105109
}
106110
]
107111
},

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ project.properties
1111
*.sublime-workspace
1212
.sublimelinterrc
1313
.cursor/
14+
.claude/
15+
.zed/
16+
.phpactor.json
1417

1518
# Bundle
1619
dist

assets/images/dispute-evidence-submitted.svg

Lines changed: 50 additions & 0 deletions
Loading

changelog.txt

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
11
*** WooPayments Changelog ***
22

3+
= 9.7.0 - 2025-07-24 =
4+
* Add - Add a confirmation screen to the new flow for submitting dispute evidence.
5+
* Add - Add Credit not processed logic for the new evidence submission form.
6+
* Add - Add external help link to the recomended documents section.
7+
* Add - Add logic for Duplicate chargeback reason for the new evidence submission form.
8+
* Add - Add logic for subscription cancelled for the new evidence form.
9+
* Add - Add new transaction type fee_refund
10+
* Add - File name should show size the extension
11+
* Add - New evidence flow for the "General" dispute type.
12+
* Fix - Accept TAP_TO_PAY_DEVICE as a valid card reader model to consider a transaction as TTP.
13+
* Fix - Adjusted deactivation modal behavior to correctly resize when its content updates.
14+
* Fix - Change copy to avoid leaving words alone.
15+
* Fix - Consolidate test account notices in one in the WooPayments Settings page.
16+
* Fix - Enable WooPay Direct Checkout on mini-cart.
17+
* Fix - Fix - Remove unwanted animations and improve styling consistency on dispute evidence pages.
18+
* Fix - Fix: Allow multiple authorization cancellations on the same order.
19+
* Fix - Fix: Google Pay 3D Secure authentication being bypassed due to redirect URL extraction issue
20+
* Fix - fix: remove BNPLs from PMME when BNPL method is not active
21+
* Fix - Fix: Spinner alignment issues in cart checkout button and checkout address form email field.
22+
* Fix - Fix border color of some items.
23+
* Fix - Fix copy for the documents section and fix the font size of the content inside the accordion on top.
24+
* Fix - Fix filename issue on the new evidence submission form.
25+
* Fix - Fix margin of the shipping details title on the evidence submission form.
26+
* Fix - Fix order notes after subscriptions' payment method gets changed.
27+
* Fix - Fix spacings on the envidence submission form
28+
* Fix - Fix vertical UI shift when uploading a file
29+
* Fix - Fix WooPay button spinner on some themes.
30+
* Fix - Improve the cover letter save behavior.
31+
* Fix - Provide correct language code when requesting CSV exports in a region-specific language
32+
* Fix - Remove unnecessary gap
33+
* Fix - Step back should also scroll the page to the top
34+
* Fix - Support numbers starting from 4, 7, 8 for Hong Kong phones.
35+
* Update - Disallow challenging the Visa compliance disputes.
36+
* Update - ensure payments and transactions pages uses wp components that come with the WP installation.
37+
* Update - Improve multicurrency caching and use new API endpoint.
38+
* Update - Make the card reaaders page use the wp.components available in the WordPress installation.
39+
* Update - Redirect merchant to the dispute detail screen
40+
* Update - Redirects to the dispute list after save.
41+
* Update - Removes the feature flag for the new evidence submission form.
42+
* Update - update: deactivation survey to use WP components bundled within the WP installation
43+
* Update - update: ensure multi-currency settings page uses wp components that come with the WP installation; updated some styles to use WP components, rather than bespoke components;
44+
* Update - update: ensure settings page uses wp components that come with the WP installation
45+
* Update - update: multi-currency widget to use WP components bundled within the WP installation
46+
* Update - update: order page assets with wp components
47+
* Update - update: RedirectToTransactionDetails to use Gutenberg components that come with the WP installation
48+
* Update - update: removed the payment gateways confirmation dialog
49+
* Update - update: subscription-product-onboarding to use WP components bundled within the WP installation
50+
* Update - update: TOS agreement dialog to use WP Components bundled within the WP installation
51+
* Update - Update client to use NOX surfaces instead of MOX/Connect page wherever possible.
52+
* Update - Update copy for disputes
53+
* Update - Update Multi-currency settings to use wp.components available in the WordPress installation.
54+
* Update - Update the payments overview page to use the components available in the WP installation.
55+
* Update - Update the payout list and payout details pages to use the WP components available on the WP installation.
56+
* Dev - Fix imports for the unbundled components.
57+
* Dev - Prevent "Evidence saved" toast from appearing multiple times.
58+
* Dev - Remove conversion to the server locale, as it is done on the server.
59+
* Dev - Remove feature flag _wcpay_feature_documents
60+
* Dev - Remove old evidence submission code
61+
* Dev - update: ensure `wp-components-wrapped` has individually exported components
62+
363
= 9.6.0 - 2025-07-02 =
464
* Add - Add cover letter for the new evidence submission screen for Product Unacceptable chargeback reason
565
* Add - Added a URL parameter to allow merchants to access the VAT details modal.

client/card-readers/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { __ } from '@wordpress/i18n';
1111
*/
1212
import Page from 'components/page';
1313
import ReadersList from './list';
14-
import { TabPanel } from '@wordpress/components';
14+
import { TabPanel } from 'wcpay/components/wp-components-wrapped/components/tab-panel';
1515

1616
import './style.scss';
1717

client/card-readers/list/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
*/
55
import React from 'react';
66
import { __, sprintf } from '@wordpress/i18n';
7-
import { Card, CardBody, CardDivider } from '@wordpress/components';
87

98
/**
109
* Internal dependencies
1110
*/
11+
import { Card } from 'wcpay/components/wp-components-wrapped/components/card';
12+
import { CardBody } from 'wcpay/components/wp-components-wrapped/components/card-body';
13+
import { CardDivider } from 'wcpay/components/wp-components-wrapped/components/card-divider';
1214
import SettingsSection from 'wcpay/settings/settings-section';
1315
import SettingsLayout from 'wcpay/settings/settings-layout';
1416
import LoadableSettingsSection from 'wcpay/settings/loadable-settings-section';

client/cart/blocks/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Internal dependencies
33
*/
44
import { renderBNPLCartMessaging } from './product-details';
5+
import './style.scss';
56

67
const { registerPlugin } = window.wp.plugins;
78

client/cart/blocks/style.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Cart Blocks Styles
3+
*
4+
* This file contains styles specific to WooCommerce cart blocks
5+
* and WCPay integrations within the cart context.
6+
*/
7+
8+
/**
9+
* Fix for cart submit button spinner alignment
10+
*/
11+
.wc-block-cart__submit-button .wc-block-components-button__text {
12+
position: relative;
13+
14+
.wc-block-components-spinner {
15+
/* Override the base style's top/left: initial */
16+
top: 0;
17+
left: 0;
18+
}
19+
}

client/checkout/woopay/style.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@
2424
}
2525
}
2626

27+
/* Fix for address form email field spinner alignment */
28+
.wc-block-components-address-form__email {
29+
position: relative;
30+
31+
.wc-block-components-spinner {
32+
/* Override the base style's top/left: initial */
33+
top: 50%;
34+
left: auto;
35+
right: 10px;
36+
width: 24px;
37+
height: 24px;
38+
transform: translateY( -50% );
39+
}
40+
}
41+
2742
.woopay-login-session-iframe {
2843
width: 100%;
2944
height: 100vh;
@@ -150,6 +165,8 @@
150165
box-sizing: content-box;
151166
text-align: center;
152167
font-size: 1.25em;
168+
top: initial;
169+
left: initial;
153170

154171
&::after {
155172
content: ' ';

client/components/accordion/body.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
*/
44
import clsx from 'clsx';
55
import React, { useEffect, useRef, useState, forwardRef } from 'react';
6-
/**
7-
* WordPress dependencies
8-
*/
96
import { useMergeRefs } from '@wordpress/compose';
107

118
/**

0 commit comments

Comments
 (0)