# Payment Card

> A bank-card style design at the real 1.586 card ratio, with a chip, masked number and soft sheen.

- Category: [CSS Cards](https://copy-css.com/category/cards)
- Tags: credit card, debit, wallet, checkout, gradient, fintech
- Live preview: https://copy-css.com/snippets/payment-card
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="pay-card">
  <div class="pay-chip"></div>
  <div class="pay-number">•••• •••• •••• 4242</div>
  <div class="pay-meta">
    <span>Alex Morgan</span>
    <span>09/29</span>
  </div>
</div>
```

## CSS

```css
.pay-card {
  box-sizing: border-box;
  display: grid;
  align-content: space-between;
  width: 240px;
  aspect-ratio: 1.586;
  padding: 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(135deg, #1e3a8a, #7c3aed);
  color: #fff;
  font-family: system-ui, sans-serif;
  box-shadow: 0 18px 36px -16px rgba(30, 58, 138, 0.7);
}

.pay-chip {
  width: 36px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fde68a, #d97706);
  box-shadow: inset 0 0 0 1px rgba(120, 53, 15, 0.3);
}

.pay-number {
  font: 600 15px ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pay-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
```

## Notes

- This CSS Payment Card is 38 lines of pure CSS (0.9 KB) with no JavaScript and no dependencies. It uses linear gradients, radial gradients, box shadows and CSS Grid.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
