Catalogue
Credit Card Checkout V1, preview

Live. Click, drag or type.

A one-step card payment form with a 3D card beside it: digits fill in as you type, VISA/Mastercard detection, name and expiry copy across live, the card flips for the CVC, pointer tilt with glare, Luhn + expiry validation and a Pay → success state.

Install

  1. One commandnpx shadcn@latest add "https://qodesign.dev/r/credit-card-checkout-v1.json?key=YOUR_KEY"Your key comes with the order. Works in any shadcn project, Next.js App Router included.
  2. Or copy it inThe zip has react/src/components, ready for Next.js ("use client" included).
  3. Or ask your AIPaste PROMPT.md into Cursor, Lovable or v0.

Production use

The built-in card inputs are for the demo and tests. For real payments, keep this piece as the design and let Stripe collect the card, so card numbers never reach your server.

renderCardFields puts Stripe Elements (or the Payment Element) inside the design. The card still shows the brand and flips for the CVC. onConfirm runs on Pay with no card data, and you call stripe.confirmCardPayment there.

<CardCheckout amount={49} renderCardFields={(slot) => <StripeCardFields onChange={slot.onChange} />} onConfirm={({ name }) => confirmWithStripe(name)} />

The README has the full Stripe wiring, server route included, and PROMPT.md tells Cursor, Lovable or v0 to set it up that way.

What it does

  • Live 3D card preview with tilt + glare
  • Brand detection + Luhn validation
  • CVC flip, Pay spinner + success
Stack
React · Framer Motion · HTML version
Released
Licence
Personal and client projects. Licence

Reviews

No reviews yet for this piece.

Only people who got it can review it: the order email has a rating link, one review per order.

Keep browsing

Receipt Morph Checkout, animated preview

Your card becomes the receipt: it splits, unrolls into paper and gets stamped PAID.

Stack Cart Drawer, animated preview

Products fly into the cart as discs; open it and they unfold into line items.

Hold to Delete, animated preview

A delete button you press and hold, then the file crumples into the bin.

Not ready to buy? Try the free kit