The tax credit is an incentive created by the federal government to incentivize homeowners to go solar. It applies to batteries as well. Anyone who is a system owner can claim the tax credit. This means whether you purchased for cash, or financing you would qualify for the federal tax credit. If you opted to do a lease or PPA however, you would not be eligible. Ask your CPA to see if tax credits would help you.