INDECOPI regulation requires showing passport/DNI/CE when using credit cards without chip. This isn't an issue European or Peruvian cards as almost all of them requires using PIN instead of signature. Often other types of photo "ids" (student cards etc) are accepted but in theory all foreigners are required to show either passport or carnet de extranjeria when using credit cards without chip.