The customer grants access to her account to the payment provider, who does not disclose any account information to the AI agent at any time. I grant permission like I always do via mobile phone (e.g. finger print). The payment provider is just there, because not every AI agent would want to implement connections to dozens of banks. This nicely makes credit cards unnecessary.
I think the EU does this with Wero.
It's kind of a historical accident that this consumer protection is tied to credit cards as a payment mechanism, but that's the way it is and I think it means that credit cards are generally a better way to pay for things than other options as a result.