Skip to content

Demos

Basic example

Basic card using productCode.

DNB Kortet
BankAxept

Kortnummer

**** 1337

<PaymentCard product_code="NK1" card_number="************1337" />

Custom card using rawData

You may have to import the extra named exports:

import PaymentCard, {
getCardData,
Designs,
ProductType,
CardType,
} from '@dnb/eufemia/extensions/PaymentCard'

Basic card using a status

Basic card using product code and status.

Basic card in compact variant

NB: The compact variant have to be aligned to a not yet defined SSOT style.

Demo cards

A few selected cards to showcase all the different PaymentCard designs.

NK1

DNB Kortet
BankAxept

Kortnummer

**** 1337

NK4

DNB Kortet
BankAxept

Kortnummer

**** 1337

NK5

DNB Kortet
BankAxept

Kortnummer

**** 1337

VE1

DNB Electron

Kortnummer

**** 1337

Visa

VE2

DNB Electron u/leg

Kortnummer

**** 1337

Visa

VG1

SAGA Gull Visa
SagaGoldBankAxept

Kortnummer

**** 1337

Visa

VG4

SAGA Gull Visa u/leg
SagaGoldBankAxept

Kortnummer

**** 1337

Visa

053

SAGA Gull Mastercard
SagaGold

Kortnummer

**** 1337

Mastercard

VK2

DNB Visa

Kortnummer

**** 1337

Visa

VK4

DNB Visa

Kortnummer

**** 1337

Visa

084

Pluss Mastercard(leve)

Kortnummer

**** 1337

Mastercard

VL1

Sølv Visa
BankAxept

Kortnummer

**** 1337

Visa

VL2

Hvitt Visa
BankAxept

Kortnummer

**** 1337

Visa

VL3

Sølv Visa

Kortnummer

**** 1337

Visa

VL4

DNB Visa u/leg
BankAxept

Kortnummer

**** 1337

Visa

VL6

Hvitt Visa u/leg
BankAxept

Kortnummer

**** 1337

Visa

085

Ung Mastercard(student)

Kortnummer

**** 1337

Mastercard

VO1

DNB Visa Online
BankAxept

Kortnummer

**** 1337

Visa

VP2

SAGA Platinum Visa
SagaPlatinum

Kortnummer

**** 1337

Visa

VP3

Private Banking Visa
PB

Kortnummer

**** 1337

SagaPlatinum

VP4

SAGA Platinum Visa u/leg
SagaPlatinumBankAxept

Kortnummer

**** 1337

Visa

069

SAGA Platinum Mastercard
SagaPlatinum

Kortnummer

**** 1337

Mastercard

VP5

Private Banking Visa u/leg
PBBankAxept

Kortnummer

**** 1337

SagaPlatinum

080

Private Banking Mastercard
PBBankAxept

Kortnummer

**** 1337

Mastercard

VX1

Mitt første kort

Kortnummer

**** 1337

Visa

VX3

Ungdomskortet
BankAxept

Kortnummer

**** 1337

Visa

VX4

Mitt første kort u/leg
BankAxept

Kortnummer

**** 1337

Visa

VX5

Ungdomskortet u/leg
BankAxept

Kortnummer

**** 1337

Visa

096

DNB Mastercard

Kortnummer

**** 1337

Mastercard

044

Hvitt Mastercard

Kortnummer

**** 1337

Mastercard

043

Sølv MasterCard

Kortnummer

**** 1337

Mastercard

098

SAGA Gull Mastercard
SagaGold

Kortnummer

**** 1337

Mastercard

074

SAGA Platinum Mastercard
SagaPlatinum

Kortnummer

**** 1337

Mastercard

062

Private Banking Mastercard
PB

Kortnummer

**** 1337

Mastercard

BK1

Bedriftskort (småkjøpskort)
BankAxept

Kortnummer

**** 1337

BP1

Bedriftskort (småkjøpskort)
BankAxept

Kortnummer

**** 1337

VB1

Bedriftskort med Visa
BankAxept

Kortnummer

**** 1337

Visa

VB2

Visa Business
BankAxept

Kortnummer

**** 1337

Visa

VB5

Bedriftskort med Visa

Kortnummer

**** 1337

Visa

P101

?

Kortnummer

**** 1337

Mastercard
const demoCards = [
'NK1',
'NK4',
'NK5',
'VE1',
'VE2',
'VG1',
'VG4',
'053',
'VK2',
'VK4',
'084',
'VL1',
'VL2',
'VL3',
'VL4',
'VL6',
'085',
'VO1',
'VP2',
'VP3',
'VP4',
'069',
'VP5',
'080',
'VX1',
'VX3',
'VX4',
'VX5',
'096',
'044',
'043',
'098',
'074',
'062',
'BK1',
'BP1',
'VB1',
'VB2',
'VB5',
'P101',
]
const Cards = () => (
<>
{demoCards.map((product_code) => {
const cardData = getCardData(product_code)
return (
<article key={product_code}>
<H4>{product_code}</H4>
<PaymentCard
product_code={product_code}
card_number="************1337"
/>
</article>
)
})}
</>
)
render(<Cards />)