Skip to content

Commit 0510917

Browse files
authored
chore: remove unrequested JCB notice (#10678)
1 parent cecf40f commit 0510917

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: update
3+
4+
chore: disable request of JCB capability

client/settings/payment-methods-list/capability-request/capability-request-map.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ const CapabilityRequestList: Array< CapabilityRequestMap > = [
1010
label: __( 'JCB', 'woocommerce-payments' ),
1111
country: 'JP',
1212
states: {
13-
unrequested: {
14-
status: 'info',
15-
content: __(
16-
'Enable JCB for your customers, the only international payment brand based in Japan.',
17-
'woocommerce-payments'
18-
),
19-
actions: 'request',
20-
actionsLabel: __( 'Enable JCB', 'woocommerce-payments' ),
21-
},
2213
pending_verification: {
2314
status: 'warning',
2415
content: __(

client/settings/payment-methods-list/capability-request/test/index.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ describe( 'CapabilityRequestNotice', () => {
8383
expect( container ).toMatchSnapshot();
8484
} );
8585

86+
it( 'should not render the UNREQUESTED notice for JCB, if it is not part of the list', () => {
87+
const { container } = render(
88+
<CapabilityNotice id="jcb" label="JCB" country="JP" states={ {} } />
89+
);
90+
91+
expect( container ).toBeEmpty();
92+
} );
93+
8694
it( 'should render content and button - Render CapabilityNotice', () => {
8795
render(
8896
<CapabilityNotice

0 commit comments

Comments
 (0)