-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Web Monetization JSON-LD namespace
- Loading branch information
1 parent
9d155de
commit 31a3d3b
Showing
9 changed files
with
64 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"@context": { | ||
"wm": "https://webmonetization.org/ns#", | ||
"monetization": { | ||
"@id": "wm:monetization", | ||
"@type": "@id" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: 'HTML <link rel="monetization">' | ||
--- | ||
|
||
import Specification from '/src/components/docs/Specification.astro' | ||
import BrowserCompat from '/src/components/docs/BrowserCompat.astro' | ||
import data from '/src/data/browser-compat-data/link.json' | ||
import { LinkOut } from '@interledger/docs-design-system' | ||
|
||
Web Monetization wallet addresses are represented in HTML documents using the `<link>` element with the `rel="monetization"` attribute. The `rel` value must be `monetization`. The `href` value must be a URL of an Open Payments-enabled wallet address. | ||
|
||
```html | ||
<link rel="monetization" href="https://wallet.example/alice"> | ||
``` | ||
|
||
A single HTML document can contain multiple monetization `<link>` elements; however, it's up to each Web Monetization provider to decide how they want to handle this scenario. We recommend Web Monetization providers split the payments evenly between the links. | ||
|
||
## Specifications | ||
|
||
<Specification anchor='link-type-monetization' /> | ||
|
||
## Related | ||
|
||
- [Guide: Add Web Monetization to a webpage](/docs/guides/monetize-page) | ||
|
||
{/* ## Browser compatibility */} | ||
|
||
{/* <BrowserCompat json={data} /> */} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters