The janitor has the capacity to enter into contracts, because he's an adult human and (presumably) isn't mentally impaired in any way, but he doesn't have the authority to enter into contracts on behalf of his employer.
I don't know exactly how it works with online shopping, but I assume that when you place an order, certain employees or managers have the authority to cancel it within a short time, and if they don't, a contract is formed by default between you and the company. There were a few lawsuits about this in the early days of e-commerce, when database glitches or bad programming caused expensive items to be listed at very low prices, customers ordered them, and the company refused to honour the deal. The company's lawyers argued that the contract didn't come into existence when the user pressed the "buy" button, but rather when the company billed the customer's card, or when the company sent an email to say the order had been accepted.
If a court ever rules that an AI can enter into contracts, then companies that use them will update their rules to make it clear that their AIs don't have the authority to do that.