Yes, as a client component. Keep "use client" at the top of the file that renders it, as in the snippet above. App Router and Pages Router both work.
Does it validate the card number?
Yes. In demo mode it runs a Luhn check, detects the brand and checks expiry and CVC. In production Stripe Elements validate the card and the 3D card follows their brand and completeness.
Is it safe for real payments?
Yes, with the slot. The built-in inputs are for demos and tests. For real money, put Stripe Elements in renderCardFields so card numbers go straight to Stripe and never reach your server.
Can Cursor or v0 add it for me?
Yes. Each download has a PROMPT.md. Paste it into Cursor, Lovable, v0 or Claude Code and it fits the piece into your app.
Can I use it in client work?
Yes, in personal and client projects. You can't resell the code itself as a kit.