Skip to content

Commit b96936d

Browse files
authored
Feat: enable logos for SK and CZ online banking (#2939)
* feat: enable logos for SK and CZ online banking * changeset * update SK currency to EUR on playgrounds
1 parent 7833841 commit b96936d

File tree

11 files changed

+55
-8
lines changed

11 files changed

+55
-8
lines changed

.changeset/thirty-boats-applaud.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@adyen/adyen-web': minor
3+
---
4+
5+
Feat: enable logos for SK and CZ online banking

examples/angular/src/utils/getCurrency.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const currencies: Record<string, string> = {
2626
RU: 'RUB',
2727
SE: 'SEK',
2828
SG: 'SGD',
29-
SK: 'SKK',
3029
TH: 'THB',
3130
TW: 'TWD',
3231
US: 'USD',

examples/nextjs/app/_utils/amount-utils.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const currencies = {
2626
RU: "RUB",
2727
SE: "SEK",
2828
SG: "SGD",
29-
SK: "SKK",
3029
TH: "THB",
3130
TW: "TWD",
3231
US: "USD",

examples/nextjs/app/_utils/getCurrency.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const currencies = {
2626
RU: "RUB",
2727
SE: "SEK",
2828
SG: "SGD",
29-
SK: "SKK",
3029
TH: "THB",
3130
TW: "TWD",
3231
US: "USD",

examples/nuxt/utils/getCurrency.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const currencies: Record<string, string> = {
2626
RU: 'RUB',
2727
SE: 'SEK',
2828
SG: 'SGD',
29-
SK: 'SKK',
3029
TH: 'THB',
3130
TW: 'TWD',
3231
US: 'USD',

packages/lib/src/components/OnlineBankingCZ/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class OnlineBankingCZElement extends IssuerListContainer {
1515
formatProps(props) {
1616
return {
1717
...super.formatProps(props),
18-
showImage: false,
18+
showImage: true,
1919
termsAndConditions: OnlineBankingCZElement.termsAndConditions
2020
};
2121
}

packages/lib/src/components/OnlineBankingSK/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class OnlineBankingSKElement extends IssuerListContainer {
1515
formatProps(props) {
1616
return {
1717
...super.formatProps(props),
18-
showImage: false,
18+
showImage: true,
1919
termsAndConditions: OnlineBankingSKElement.termsAndConditions
2020
};
2121
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { MetaConfiguration, StoryConfiguration } from '../types';
2+
import { ComponentContainer } from '../ComponentContainer';
3+
import { IssuerListConfiguration } from '../../../src/components/helpers/IssuerListContainer/types';
4+
import { Checkout } from '../Checkout';
5+
import { OnlineBankingCZ } from '../../../src';
6+
7+
type OnlineBankingCZStory = StoryConfiguration<IssuerListConfiguration>;
8+
9+
const meta: MetaConfiguration<IssuerListConfiguration> = {
10+
title: 'IssuerList/OnlineBankingCZ'
11+
};
12+
13+
export const Default: OnlineBankingCZStory = {
14+
render: ({ componentConfiguration, ...checkoutConfig }) => (
15+
<Checkout checkoutConfig={checkoutConfig}>
16+
{checkout => <ComponentContainer element={new OnlineBankingCZ(checkout, componentConfiguration)} />}
17+
</Checkout>
18+
),
19+
args: {
20+
countryCode: 'CZ'
21+
}
22+
};
23+
24+
export default meta;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { MetaConfiguration, StoryConfiguration } from '../types';
2+
import { ComponentContainer } from '../ComponentContainer';
3+
import { IssuerListConfiguration } from '../../../src/components/helpers/IssuerListContainer/types';
4+
import { Checkout } from '../Checkout';
5+
import { OnlineBankingSK } from '../../../src';
6+
7+
type OnlineBankingSKStory = StoryConfiguration<IssuerListConfiguration>;
8+
9+
const meta: MetaConfiguration<IssuerListConfiguration> = {
10+
title: 'IssuerList/OnlineBankingSK'
11+
};
12+
13+
export const Default: OnlineBankingSKStory = {
14+
render: ({ componentConfiguration, ...checkoutConfig }) => (
15+
<Checkout checkoutConfig={checkoutConfig}>
16+
{checkout => <ComponentContainer element={new OnlineBankingSK(checkout, componentConfiguration)} />}
17+
</Checkout>
18+
),
19+
args: {
20+
countryCode: 'SK'
21+
}
22+
};
23+
24+
export default meta;

packages/lib/storybook/utils/get-currency.ts

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const currencies: Record<string, string> = {
2828
RU: 'RUB',
2929
SE: 'SEK',
3030
SG: 'SGD',
31-
SK: 'SKK',
3231
TH: 'THB',
3332
TW: 'TWD',
3433
US: 'USD',

packages/playground/src/config/getCurrency.js

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const currencies = {
2727
RU: 'RUB',
2828
SE: 'SEK',
2929
SG: 'SGD',
30-
SK: 'SKK',
3130
TH: 'THB',
3231
TW: 'TWD',
3332
US: 'USD',

0 commit comments

Comments
 (0)