Batteries can be configured to “Energy Arbitrage Mode” in which they shift your net usage from expensive times of the day to less expensive, lowering your average cost of energy. This mode alone has a much longer payback than solar by itself, but it is theoretically possible to recoup the cost in this way.
Please read this article for more information on Solar Batteries:
Solar Electric Systems and Storage