Some restaurants do take credit cards as payment, but as Japan is still a cash-orientated country many smaller stores are still "CASH ONLY". It is advised to carry some cash (Japanese Yen) on you, just in case.