P Dizzt pyta:
What determines if a credit card is valid or not?

What I mean is that Im renting a room at a hotel. They need a ID and a valid Credit Card. What determines if a credit card is valid or not.