← All work

Repeat payments with saved cards · Sep 2024 – Jul 2025

Paying again with a saved card

Many payments on this checkout come back every month or every year, and typing a 16-digit card number each time is exactly the friction that makes people put off paying. I built saved cards into our orchestration checkout: pick a card, type three digits, see the right fee, pay.

• • •
Role
Frontend engineer
When
Sep 2024 – Jul 2025
Where
PayGlocal
Stack
ReactRedux ToolkitTailwindCard tokenisation

The situation

Card details can’t simply be stored. Saved cards are tokenised: the card network issues a token for the merchant, and the checkout pays with that instead of the card number. The checkout had to list a customer’s saved cards, let them pay with one, remove one, handle cards that carry a fee, respect standing-instruction consent, and cope when a saved card can’t be retrieved at payment time.

What I built

  • A “My cards” landing view listing saved cards with brand logos, expiry and the last four digits, with a “show more” for longer lists.
  • Paying with a saved card asks only for the CVV, with its own validation, and sends the saved card’s identifier instead of card details.
  • A fee fetched for the specific card chosen, so the customer sees the right total before paying.
  • Standing-instruction consent on saved-card payments, so recurring payments work with saved cards too.
  • Remove a card with a confirmation drawer, and a token-info drawer explaining what a saved card is.
  • When a saved card can’t be retrieved, a drawer explains and sends the customer to other payment methods, and the failed card is cleared from the selection.
  • Small details: the CVV and save-card checkbox reset when the customer switches card, and “My cards” stays one tap away from the card screen.
Try it
Amount due₹18,400

My cards

  • VISA•••• 4242Exp 08/28
  • MC•••• 4444Exp 11/27

All payment methods ›

Try the saved-card flow

  • CVV only. The card is already saved, so the customer types three digits, not sixteen.
  • Each card’s own fee. Some card types carry a fee; it’s fetched for the card you picked, and shown before you pay.
  • Remove with a confirm. One tap away, but never by accident.
  • When it fails, there’s a way out. If the saved card can’t be retrieved, the customer goes straight to other methods instead of a dead end.

Decisions

Three digits, not sixteen

The whole point of a saved card is speed. Asking only for the CVV keeps the security check the card network expects and drops everything else.

Show the fee for this card, not a guess

Fees can depend on the card. Fetching the fee for the card actually chosen means the total on screen is the total charged.

Failure is a fork, not a wall

A saved card can fail to retrieve for reasons the customer can’t fix. Instead of an error, they get a short explanation and every other way to pay.

Reset what no longer applies

Switching cards clears the CVV and consent so nothing typed for one card is ever submitted for another.

Outcome

WhatBeforeAfterDetail
Digits typed by a returning customer16 + expiry + CVVCVV onlyfaster repeat payments
Commits40Sep 2024 – Jul 2025
If a saved card can’t be usedother methods offeredno dead end
↑↓ move↵ openesc close