A zip code on a credit card is a security measure to ensure that the card is being used by the rightful owner. The zip code is typically the last four digits of the cardholder's address. When entering their zip code during a transaction, the cardholder is verifying that they are in possession of the card and that the billing address on file for the card matches their current location.