Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social  ·  activity timestamp 2 days ago

1/

I have been looking at Web Monetization.

Partly because I am curious. And, partly because I may implement them for CrowdBucks.

One part of Web Monetization are "Payment-Pointers".

They aren't URLs. But sort of URL-like, in that they point somewhere.

For example, my web-site is:

https://reiver.link

Then I could let people people pay me with this Payment-Pointer:

$reiver.link

#CrowdBucks#FediDev#Fediverse#WebMonetization

  • Copy link
  • Flag this post
  • Block
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social replied  ·  activity timestamp 2 days ago

2/

The Payment-Pointer:

$reiver.link

Would resolve to the HTTP-URL:

https://reiver.link/.well-known/pay

And, that (HTTPS-URL) would return some type of JSON document.

#CrowdBucks#FediDev#Fediverse#WebMonetization

  • Copy link
  • Flag this comment
  • Block
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social replied  ·  activity timestamp 2 days ago

3/

I was looking around for a specification for Web Monetization Payment-Pointers. The closest thing I could find is this:

https://paymentpointers.org/

#CrowdBucks#FediDev#Fediverse#WebMonetization

  • Copy link
  • Flag this comment
  • Block
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social replied  ·  activity timestamp 2 days ago

3/

One thing that seems missing is — what is supposed to be returned from the HTTPS-URL that a Web Monetization Payment-Pointer resolves to?

What are the fields in the JSON?

#CrowdBucks#FediDev#Fediverse#WebMonetization

  • Copy link
  • Flag this comment
  • Block
@reiver ⊼ (Charles) :batman:
@reiver@mastodon.social replied  ·  activity timestamp 2 days ago

5/

I am wondering if maybe what is returned from the HTTPS-URL that a Payment Pointer resolves to is:

SPSP JSON

https://interledger.org/developers/rfcs/simple-payment-setup-protocol/

.

#CrowdBucks#FediDev#Fediverse#PaymentPointer#SimplePaymentSetupProtocol#SPSP#WebMonetization

HTTP/1.1 200 OK
Content-Type: application/spsp4+json

{
  "destination_account": "example.ilpdemo.red.bob",
  "shared_secret": "6jR5iNIVRvqeasJeCty6C+YB5X9FhSOUPCL/5nha5Vs=",
  "receipts_enabled": true
}
HTTP/1.1 200 OK Content-Type: application/spsp4+json { "destination_account": "example.ilpdemo.red.bob", "shared_secret": "6jR5iNIVRvqeasJeCty6C+YB5X9FhSOUPCL/5nha5Vs=", "receipts_enabled": true }
HTTP/1.1 200 OK Content-Type: application/spsp4+json { "destination_account": "example.ilpdemo.red.bob", "shared_secret": "6jR5iNIVRvqeasJeCty6C+YB5X9FhSOUPCL/5nha5Vs=", "receipts_enabled": true }
  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.6 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct