Components
BasePaymentMethod
A small badge for a payment method or card brand.
components/ui/BasePaymentMethod.vue
View in the demo
Example
VISAMCPP
Card brands show as short text (visa VISA, mastercard MC, amex AMEX), paypal as PP, and transfer and cash as icons; any other name shows its first letters. label is the tooltip and the accessible name, so make it say the whole thing ("Visa ending in 4242"). Orders use it through OrderPaymentMethod.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
brandrequired | string | — | The method or card brand: visa, mastercard, amex, paypal, transfer, cash or any other name (shown as its first letters). |
labelrequired | string | — | The tooltip and accessible name, such as "Visa ending in 4242". |