The chosen card shows on the page; saved cards are listed in a popup, where you can add a new one. The card number and CVV never reach the network, and you connect your payment provider in one place.
To try it, use 5400 3600 0000 0003 and a future date. Do not type your real card. The save button sends DummyJSON a dummy token, the brand, the last four digits, the expiry and the name; never the card number or CVV.
useCheckoutCard returns order-ready data.tokenize-card.ts. Set your API's address in NEXT_PUBLIC_API_URL or VITE_API_URL and the card path in CARDS_PATH, then adapt get-cards.api.ts and save-card.api.ts to your API. Never send the card number or CVV to your server.npx virastack remove checkout-card.