I had same issue when visiting the US. I tried some fake numbers but it wouldn't accept it (my actual postal code has letters, so that wasn't possible), so I just ended up paying by cash.
Post codes in Australia are just 4 numbers, so when buying subway tickets in NYC, I just put in 10000 or something (I believe that's close enough to the local code?).