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.

States: Default

Parts

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

Styling

PartRecipe
PaymentMethodmeta

Install

Writes 3 files into components/sections/payment-method/. For agents, npx @frontic/ui docs payment-method prints this reference as markdown; the MCP server serves the same.

npm packages
@lucide/vue

Built from

API reference

PaymentMethod PaymentMethod.vue

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

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''
EventPayload
update:methodvalue: string
update:cardNumbervalue: string
update:expiryvalue: string
update:cvcvalue: string
update:codevalue: string
paymethod: string
Data attributeValues
data-surface'raised' | 'bare'
Recipe metaSets
base: meta 3 properties
Example