The Japan Railway group says its credit card payment system is now back online nationwide. A glitch early on Monday left travelers unable to use the form of payment, creating headaches for the morning commute.
JR officials say the problem started at around 4 a.m. and lasted five hours. They say there was a technical issue in the server that processes credit payments.
A male passenger said, "We had to go find a convenience store or ATM to get cash to pay with."
Another male passenger said: "I'm glad I wasn't in a hurry. If I'd had a meeting scheduled and this happened, I would have been really angry."
Customers can now use credit cards for all purchases, including buying tickets in-person or online.
JR companies are looking into the cause of the error. They say the credit payment system is managed by an affiliate company.