DEV Community

Discussion on: Journey into Web Monetization - mixtapes

Collapse
 
wobsoriano profile image
Robert

RE: "Could we have something like an OAuth2 flow where we allow a site to spend x amount from our wallet?"

I've published a browser extension to check how much went to each site in total, it doesn't answer your question but I guess for now this is the closest thing that we can do to track micropayments.

Collapse
 
carlbarrdahl profile image
Carl Barrdahl

Thanks for your comment Robert.

I saw your contribution and it's pretty cool! Well done!

What I had in mind would be something like:

  1. User visits monetized site
  2. Monetized site has registered its site in a OAuth2Wallet provider
  3. User is asked to sign in (much like Github, Google, FB etc...)
  4. Code is receiver to exchange for access token
  5. Access token contains payment pointer
  6. Monetized site requests content using access token
  7. Monetized backend sets up stream using payment pointer
  8. Monetized backend calls stream.receiveTotal(amount) every x seconds