Payment Methods Display
A grid of plain-text payment option tiles: credit card brand tiles, digital wallet tiles, and a bank transfer tile, each with a generic Lucide icon. No selection state, just a checkout or footer trust display listing which payment methods are accepted.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/payment-methods-display.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/ecommerce/ecommerce33.tsx instead.
Usage
The file also exports ecommerce33Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Ecommerce33, ecommerce33Demo } from "@/components/blocks/ecommerce/ecommerce33"; export default function Page() { return <Ecommerce33 {...ecommerce33Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Accepted payment methods" | Heading above the tile grid. |
| description | string | none | Short supporting line under the heading. |
| cardBrands | string[] | [] | Credit card brand names, each rendered as a plain-text tile with a CreditCard icon. |
| wallets | string[] | [] | Digital wallet names, each rendered as a plain-text tile with a Wallet icon. |
| bankTransfer | BankTransferOption | none | A single bank transfer tile with a Landmark icon; omitted entirely when not set. |
| className | string | none | Extra classes for the outer section element. |
Types
type BankTransferOption = { label: string; description: string; };
Behavior notes
- Fully static: no tile is selectable and there are no click handlers anywhere in this block.
- Card brand and wallet names ("Visa", "Mastercard", "Apple Pay", "Google Pay", etc.) are rendered as plain styled text next to a generic Lucide icon, never as a trademarked logo graphic or brand-specific SVG.
- cardBrands, wallets, and bankTransfer are independent: any of the three can be empty/omitted and the grid simply renders fewer tiles, down to zero.
- The heading/description block only renders when at least one of the two is set.
More Ecommerce Blocks
View all →wishlist-manager
Wishlist Manager
Saved-items list with stock-status badges, move-to-cart and remove actions, and a real empty state.
product-information-tabs
Product Information Tabs
Tabbed product details with Description, Features, Specifications, Reviews, and Shipping panels.
collection-showcase-grid
Collection Showcase Grid
A large featured-collection hero card alongside a grid of smaller supporting collection tiles.
shop-by-brand-grid
Shop by Brand Grid
A grid of bordered brand tiles with a wordmark-style name, product count, and a hover affordance.
sale-countdown-timer
Sale Countdown Timer
A live days/hours/minutes/seconds countdown in default, compact, or full-width banner layouts.
gift-card-redemption-form
Gift Card Redemption Form
A code-entry form that validates against a fixed list of demo gift cards and shows a real success or error state.