---
title: "PaymentMethodCard"
description: "The physical card object. 3D flip, pointer tilt."
canonical: "https://lopifi.com/components/payment-method-card"
---

# PaymentMethodCard

> The physical card object. 3D flip, pointer tilt.

Source: https://lopifi.com/components/payment-method-card
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Family:** Cards — 
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/cards

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/payment-method-card
```

## Specification

> The physical object. It gets two of the four sanctioned delight moments: the flip and the tilt.

**Geometry, from ISO/IEC 7810 ID-1:**
```
aspect-ratio: 1.586          (85.60 × 53.98 mm)
border-radius: 3.7% / 5.9%     (3.18mm — 3.7% of width, 5.9% of height)
```
Real proportions matter. A 16:9 card with a 24px radius reads as a rectangle, not a card.

**Networks:** Visa, Mastercard, American Express, Discover, JCB, UnionPay and Diners Club. The
mark is [`CardNetworkMark`](https://lopifi.com/md/docs/catalog/primitives#180-cardnetworkmark) unless a licensed one is passed
as `networkLogo`.

**Face:** flat, a single tint, network mark top-right opposite the chip, masked PAN in `tnum` with `ss02` (so a `0` isn't an `O`), holder name in `label` uppercase, expiry `MM/YY`. Each network has a dark default tint close to the color a reader expects of it, and `tint` overrides it with the issuer's. Visa, Amex and Diners Club print their mark in the face's ink; the others print in color. The masked number follows the network's grouping: `•••• •••••• •0005` for Amex, `•••• •••••• 1667` for a 14-digit Diners Club.

**Amex prints its four-digit code on the front**, above the number on the right. An Amex card reveals the code in place and doesn't turn over, because flipping to an empty reverse teaches the holder to look in the wrong place. The other six flip to a three-digit code on the back.

**No code, no control.** A card on file keeps no security code after authorization. Without `cvv` the reveal button isn't rendered, since a flip to `•••` reveals nothing.

**Motion:**
- **Flip to reveal CVV** — `rotateY(0→180deg)`, `spring.playful`, real 3D with `preserve-3d` + `backface-visibility: hidden`. Not a crossfade. [Spec](https://lopifi.com/md/docs/motion/catalog#card-flip).
- **Pointer tilt** — ±6° from pointer position via `spring.track`, plus a specular sheen at `opacity 0→0.12`. Desktop only, gated behind `@media (hover: hover) and (pointer: fine)`. Springs home on leave.
- Reduced motion: instant swap, no tilt.

The tilt is allowed **only because the card is decorative**. The same effect on a `KpiCard` fails review.

**Security:** CVV and full PAN are never in the DOM until revealed, never in analytics, never in a screenshot-able state without an explicit user action.

## Rules this component obeys

Money is minor units, never floats. `null` is not `0` and neither is redacted. Negatives render in accounting parentheses with the parenthesis column reserved on both sides. Debit and credit are two columns. Per-currency decimal places. Polarity is explicit — up is not always good. Every figure states its period, entity, currency, basis and as-of.
