WICG / webmonetization

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

Add example of how to verify a receipt #237

Closed marcoscaceres closed 1 year ago

marcoscaceres commented 2 years ago

It would be great if the spec or an explainer had some code that showed how to verify a receipt... and what information is contained in the receipt (i.e., is it JSON? what's the spec that has that?).

sublimator commented 2 years ago

The og issue: https://github.com/interledger/rfcs/issues/568

@wilsonianb

sublimator commented 2 years ago

And the implementing PR https://github.com/interledger/rfcs/pull/570

marcoscaceres commented 2 years ago

Thanks @sublimator! @AlexLakatos also pointed me to:
https://webmonetization.org/docs/receipt-verifier

We should have a simple example of this in the spec.

pp-koch commented 2 years ago

The documentation will not treat this topic, mostly because I do not understand it. It will just link to the webmonetization.org page.

marcoscaceres commented 2 years ago

No problem. I'm happy to add it to the spec based on the docs above. Maybe after I can get you check it to see if it makes sense?

pp-koch commented 2 years ago

Sure, no problem. Let me know.