Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associate payments with provider #45

Closed
wilsonianb opened this issue Dec 20, 2019 · 2 comments
Closed

Associate payments with provider #45

wilsonianb opened this issue Dec 20, 2019 · 2 comments
Labels
pr193 New Web Monetization Specification Proposal

Comments

@wilsonianb
Copy link
Collaborator

wilsonianb commented Dec 20, 2019

Pooling the amount paid to a website / payment pointer by a web monetization provider on behalf of all of its users adds several benefits (as described in interledger/open-payments#17):

One is that a site can start serving WM content faster, without waiting for SPSP to initialize. The site can just see the user's provider and let them in right away once they validate the provider has paid. Another advantage is that this smooths out users with varying rates on a single provider.

This could be supported with as few changes as:

  1. Use the provider’s id instead of a random UUID as the Monetization ID. Privacy conscious users who are acting as their own provider can use unique IDs with the understanding that an amount paid to a website during one page load cannot benefit them in a future page load.
  2. Websites should verify a token from the provider authenticating the user as belonging to said provider before performing payment verification (as described in step 9 of the current explainer flow). The provider's id for (1) can be a public key from a public/private key pair used to sign a JWT authenticating the user. This token would need to be included in a new monetization event (prior to monetizationstart which isn’t emitted until after the first in-session payment is made).

See #46 for a more drastic approach.

@AlexLakatos
Copy link
Collaborator

I think this would break the privacy locks we have around the standard right now. But on a different note, we've changed the flow for the state of "monetized" in the current iteration of the spec. The "interactive" state triggers as soon as we validate the payment pointer, hence providing a middle solution here. We're showing content as soon as the first payment can be made (which is similar to "you have a web monetization provider"), instead of showing it only after the first payment has been made.

@sublimator sublimator reopened this Oct 7, 2022
@huijing huijing added the pr193 New Web Monetization Specification Proposal label Jun 1, 2023
@huijing
Copy link
Collaborator

huijing commented Jun 27, 2023

No longer relevant.

@huijing huijing closed this as completed Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr193 New Web Monetization Specification Proposal
Projects
None yet
Development

No branches or pull requests

4 participants