Yes, what I mean is the where and how of the implementation. I'll share my thoughts on how I was planning to do it and how it could work for this use case. My perspective shifted when I created the transparent OAI proxy https://github.com/gzuuus/transparent-oai-api . With that proxy, I could connect to PPQ, intercept all requests and responses, mainly for debugging purposes. However, that concept could also be used to integrate a cashu wallet into the proxy, enabling automatic payments when necessary. A local piece of software that expose the same API of the provider, acting as a smart proxy to manage payments and top-ups using NWC. This way, the user centralizes their connection with providers and interacts with them using the localhost endpoint.
I have more ideas about this, but simply the system is already pluggable to Goose. It would be as easy as configuring the endpoint in its configuration. Its also more portable. You can also write it in any language