The option to filter the Accounts Payable Ageing reports by Class is unavailable in QuickBooks Online (QBO).
What you can use as a filter for these reports (Summary and Detail) is Location. To see a list of all reports that you can use Class as a filter is in this article: Run reports by class.