Accrual vs Cash Accounting

In early Jan 2018 I got invoice of eBay seller fees for the period of Dec 1 - Dec 31 2017. So I paid this invoice in 2018 rather than in 2017. Should I include this as business cost for tax year of 2017 or 2018?
Seems Accrual Accounting will include it in 2017 while cash accounting in 2018. Right?
If I run out of my business and never paid or intend to pay that invoice, should it still be included for tax purpose if I use Accrual Accounting?