Skip to main content

Response and validation models

These models capture payment processor responses and validation results for security checks like AVS and CVV.

AvsResponse

Stores Address Verification Service (AVS) check results from payment processors.

Key properties

PropertyTypeDescription
IdGuidUnique identifier
TransactionIdGuidAssociated transaction reference
ResponseCodeStringAVS response code
StreetMatchBooleanStreet address match result
PostalCodeMatchBooleanPostal code match result
ResponseMessageStringHuman-readable response

Relationships

  • Belongs to a Transaction

Common AVS response codes

CodeDescriptionStreetPostal
YFull matchMatchMatch
APartial matchMatchNo match
ZPartial matchNo matchMatch
NNo matchNo matchNo match
UUnavailable--
RRetry--

CvvResponse

Stores Card Verification Value (CVV) check results from payment processors.

Key properties

PropertyTypeDescription
IdGuidUnique identifier
TransactionIdGuidAssociated transaction reference
ResponseCodeStringCVV response code
IsMatchBooleanCVV match result
ResponseMessageStringHuman-readable response

Relationships

  • Belongs to a Transaction

Common CVV response codes

CodeDescriptionMatch
MMatchYes
NNo matchNo
PNot processed-
SShould be present-
UUnavailable-

Usage patterns

AVS validation

AVS checks compare the billing address provided by the customer against the address on file with the card issuer. This helps prevent fraudulent transactions.

CVV validation

CVV checks verify that the customer has physical possession of the card by validating the security code on the back of the card.

Risk management

AVS and CVV responses are used to:
  • Decline high-risk transactions automatically
  • Flag transactions for manual review
  • Calculate fraud scores
  • Meet processor requirements

Configuration

Projects can configure AVS and CVV handling rules:
  • Required vs. optional checks
  • Auto-decline on mismatch
  • Manual review thresholds
  • Bypass for specific transaction types

Best practices

  • Always collect and validate CVV for card-not-present transactions
  • Use AVS checks for additional fraud protection
  • Configure appropriate decline rules based on risk tolerance
  • Log all validation responses for dispute resolution
  • Monitor validation failure rates for fraud patterns

Security considerations

  • CVV values are never stored after validation
  • AVS responses are logged for audit purposes
  • Failed validation attempts are tracked for fraud detection
  • Validation results are included in transaction reports