Skip to content

Card Operations

Vendors with agent permissions can perform card operations for customers including linking, blocking, unblocking, and PIN reset.

Overview

Card operations available to agents:

  • Link new card to customer wallet
  • Block card (lost/stolen)
  • Unblock previously blocked card
  • Reset card PIN
┌─────────────────────────────────────────────────────────┐
│                    Link Card Flow                        │
├─────────────────────────────────────────────────────────┤
│                                                          │
│  ┌─────────────┐     ┌─────────────┐     ┌─────────────┐│
│  │   Find      │────▶│   Read NFC  │────▶│   Set PIN   ││
│  │   Customer  │     │   Card      │     │   (4 digits)││
│  └─────────────┘     └─────────────┘     └──────┬──────┘│
│                                                  │       │
│                                                  ▼       │
│                                          ┌─────────────┐│
│                                          │   Success   ││
│                                          │   Linked    ││
│                                          └─────────────┘│
│                                                          │
└─────────────────────────────────────────────────────────┘
  1. Find customer by phone number
  2. Tap NFC card on device
  3. Customer sets 4-digit PIN
  4. Card linked to wallet

NFC Scan States

StateDisplay
WaitingAnimated NFC icon
Scanning"Reading card..."
Success"Card detected" + masked UID
ErrorError message + retry button

Block Card

Block Steps

  1. Find customer by phone number
  2. Select card to block (from list)
  3. Enter reason for blocking
  4. Confirm block action

Block Reasons

ReasonDescription
LostCustomer lost card
StolenCard was stolen
DamagedCard is damaged
Customer RequestGeneral request
Fraud SuspectedSuspicious activity

Unblock Card

Unblock Steps

  1. Find customer by phone number
  2. View blocked cards only
  3. Select card to unblock
  4. Confirm unblock action

Note: Only previously blocked cards can be unblocked.

Reset PIN

PIN Reset Flow

Customer forgot PIN → Agent verifies identity → Agent initiates reset → Customer enters new PIN

Reset Steps

  1. Find customer by phone number
  2. Select card for PIN reset
  3. Customer enters new 4-digit PIN
  4. Customer confirms new PIN
  5. PIN updated

Identity Verification

Always verify customer identity before resetting PIN. Request ID document and match with registered name.

PIN Requirements

RequirementValue
Length4 digits
FormatNumeric only
ConfirmationMust match

API Endpoints

EndpointMethodDescription
/cards/linkPOSTLink new card
/cards/:id/blockPOSTBlock card
/cards/:id/unblockPOSTUnblock card
/cards/:id/reset-pinPOSTReset PIN

Error Handling

ErrorCauseAction
CARD_001Card already linkedUse different card
CARD_002Card not foundVerify card type
CARD_003Customer not foundVerify phone
CARD_004Already blockedNo action needed
CARD_005Not blockedCannot unblock
FilePurpose
lib/screens/cards/link_card_screen.dartLink card
lib/screens/cards/block_card_screen.dartBlock card
lib/screens/cards/unblock_card_screen.dartUnblock card
lib/screens/cards/reset_pin_screen.dartReset PIN
lib/controllers/card_controller.dartCard controller
lib/services/card_service.dartCard service

Internal use only - Keshless Payment Platform