redactCardResult
redactCardResult(result: CardResult): StorableCardDataSource: 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
StorableCardData— StorableCardData with maskedPan and expiry only (no CVV)