As a Brit in NY, when I swipe my UK card to by a Metro pass I'm asked for my ZIP code. I just put in the ZIP code of my apartment and have never had any trouble. A teller at the bank told me that since it isn't a US card they ignore it anyway...
I was once told travelling in the US on a Canadian credit card to just input '00000' and that it should do the trick on all of the self-serve pumps. Worked for me on multiple pumps.