Toggle Sidebar B
header.lightDarkMode D

Payment Method Badge

Branded badge for credit-card networks and bank-transfer logos. Pass a method id (visa, mastercard, amex, bca, ...) and the right logo and colour render automatically.

Default

Inline-flex badge with logo + readable label.

-

All methods

Common card and bank methods rendered side by side.

--------

API Reference

Props, events, and slots for each sub-component.

PaymentMethodBadge

Props

PropTypeDefaultDescription
channelstring | nullPayment channel id; resolves the logo and label first (e.g. a gateway channel code).
methodstring | nullMethod id fallback (visa, mastercard, amex, jcb, bca, mandiri, bni, bri, gopay, ovo, dana, qris).
size"sm" | "md" | "lg""md"Badge height.
showLabelbooleantrueShow the text label next to the logo.
iconOnlybooleanfalseRender only the logo; falls back to the label when no logo exists.