EarnMorev1.0.0

redactCardResult

redactCardResult(result: CardResult): StorableCardData

Source: masking.ts:50

Strips Sensitive Authentication Data (SAD) from a CardResult, returning only Cardholder Data (CHD) that is safe to store per PCI-DSS Req 3.3.1.

The CVV is intentionally excluded. The PAN is automatically masked. If you need the full PAN for storage, use encryptPAN() from storage.ts.

Parameters

  • result (CardResult) — Full CardResult from generate()

Returns