WICG / webmonetization

Proposed Web Monetization standard

Home Page:https://webmonetization.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

AlexLakatos opened this issue · comments

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

  • Rename "Probabilistic Revshare Generator" to "Probabilistic Revenue Share Generator" and any mentions of it from the page
  • update all mentions of meta tag in the page to be link tag
  • Change output to use <link rel="monetization" href="https://webmonetization.org/payment-pointer"> instead of <meta name="monetization" content="$webmonetization.org/payment-pointer" />
  • Add functionality to convert/support both payment pointer notations in the input ($ilp.dev and https://ilp.dev are equivalent). Both forms of payment pointers should generate the link with https, not with $

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