Adding headers to HTTP responses is trivially easy for web servers to do right now. Any CMS could be augmented to allow authors/publishers to configure price settings for specific resources.
And that's all the web server would have to do. The rest is up to the browser, and the payment processors.