WICG / webmonetization

Proposed Web Monetization standard
https://webmonetization.org
Other
457 stars 153 forks source link

Refactor Probabilistic Revshare Generator to use Link and re-brand it as the "Probabilistic Revenue Share Generator" #316

Closed AlexLakatos closed 1 year ago

AlexLakatos commented 1 year ago

Currently, https://webmonetization.org/prob-revshare helps you generate a new payment pointer and a meta tag that uses it. The payment pointer will randomly choose one of the payments pointers from the input list every time it's accessed, essentially letting you split revenue from a monetized page amongst multiple authors. That's designed for the old Web Monetization specification.

We should update the page & generator functionality to conform with the new Web Monetization spec, that uses link tags instead of meta tags. https://webmonetization-preview.netlify.app/specification.html

Note: link tags are supported throughout the document, not just in the head.

We might also need to update the CloudFlare service worker associated with the page, some of the logic resides there: https://github.com/WICG/webmonetization/tree/main/workers/probabilistic-revshare