You should attempt to read the magnetic stripe on the card. If the magnetic stripe cannot be read, you can decline to accept the card or manually key-enter the account number into the terminal. Note, however that you may be subject to a chargeback on a manually-keyed transaction.