WICG / webmonetization

Proposed Web Monetization standard
https://webmonetization.org
Other
466 stars 152 forks source link

Remove requestId/sessions, leave to integrators, encode sessions in payment pointers #232

Closed sublimator closed 1 year ago

sublimator commented 2 years ago

Is there actually any need for a requestId ? It was used for unlocking content (in general tracking a session balance) before receipts were added. The requestId is sent in the headers of the SPSP request as Web-Monetization-Id. The latest version of the spec actually denotes it as deprecated.

So in the next version, will it be removed ?

This question came to me when trying to get my head around the new "idle" | "interactive" states. A big part of the requirement for pending/start/stop events is the need to show when the requestId changed. It's a definition of what is starting/stopping etc. The "session" matching that requestId.

Questions:

Notes:

AlexLakatos commented 2 years ago

I need to check if the Uphold or Gatehub payment pointer implementations are listening for it. (@AlexLakatos )

Confirmed with @sharafian, wallets aren't listening for it.

Ben also agrees we can go ahead and remove the requestId.