payment-method

Payment Method

Payment card with a radio stack of methods; card number, expiry, security code and 3-D Secure code fields that open for card payment; and a pay button showing the total.

Parts

PartFileDoes
PaymentMethodPaymentMethod.vueLets the shopper choose a payment method, enter card details and pay.

Styling

All of Payment Method’s styles live in payment-method.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue

Built from

API reference

PaymentMethod.vue

Lets the shopper choose a payment method, enter card details and pay.

Props 21

PropTypeDefault
options*PaymentOption[]—
total*PriceType—
titlestring'Payment'
descriptionstring—
cardValuestring'card'
cardBrandsPaymentCardBrand[]—
cardNumberLabelstring'Card number'
expiryLabelstring'Expiry'
cvcLabelstring'Security code'
codeLabelstring'3-D Secure code'
codeHintstring—
codeLengthnumber6
payLabelstring'Pay'
localestring—
surface'raised' | 'bare''raised'
classClassValue—
methodstring''
cardNumberstring''
expirystring''
cvcstring''
codestring''

Events 6

EventPayload
update:methodvalue: string
update:cardNumbervalue: string
update:expiryvalue: string
update:cvcvalue: string
update:codevalue: string
paymethod: string

Data attributes 1

Data attributeValues
data-surface'raised' | 'bare'

Recipe meta 1 group

Payment Method