You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add csp info to pub tools and other updates (#627)
* docs: add csp info to pub tools and other updates
* docs: fix
* docs: update
realized the banner and widget tool buttons on their respective pages were in the wrong place
@@ -40,14 +40,12 @@ By adding an event listener to the relevant monetization `<link>` element (or on
40
40
41
41
### High-level flow
42
42
43
-
<Steps>
44
43
1. You add an event listener to a monetization `<link>`.
45
44
2. The site visitor accesses your page.
46
45
3. The site visitor's Web Monetization agent calls the Open Payments APIs to begin setting up the payment. More information about these API calls can be found [here](/publishers/about-receiving#a-deeper-dive-into-payments).
47
46
4. The Web Monetization agent receives a `201 (outgoing payment created)` response from the site visitor's wallet provider.
48
47
5. The Web Monetization agent fires a `monetization` event.
49
48
6. Your event listener calls its defined function.
Use Interledger Foundation's Web Monetization browser extension and Playground to receive payments without using real money.
@@ -19,55 +19,50 @@ The <LinkOut href="https://webmonetization.org/play/">Web Monetization Playgroun
19
19
20
20
Your browser extension will send payments to the address you enter if your wallet provider and the address's wallet provider can transact with one another.
21
21
22
-
If your browser extension is connected to a wallet that uses real money and you enter an address that your wallet provider can transact with, you will be making real payments. For the tutorials on this page, we're using fake money.
22
+
If your browser extension is connected to a wallet that uses real money and you enter an address that your wallet provider can transact with, you'll make real payments. For the tutorials on this page, we're using fake money.
23
23
24
24
## Receive continuous payments
25
25
26
-
{/* prettier-ignore */}
27
-
<Steps>
28
-
1. Enable continuous payments within the extension if they aren't already. Check your settings by selecting the cog icon, then the **Rate** tab.
26
+
1. Enable continuous payments in the extension if they aren't already. Check your settings by selecting the cog icon, then the **Rate** tab.
29
27
2. Go to the <LinkOuthref="https://webmonetization.org/play/">Web Monetization Playground</LinkOut>.
30
28
3. Enter your wallet account's payment pointer into the field and select **Add monetization link**.
31
-
:::note[Forgot your payment pointer?]
32
-
Open the extension and select the cog icon. Then, select the **Wallet** tab and copy your payment pointer from the **Connected wallet address** field.
33
-
:::
29
+
:::note[Forgot your payment pointer?]
30
+
Open the extension and select the cog icon. Then, select the **Wallet** tab and copy your payment pointer from the **Connected wallet address** field.
31
+
:::
34
32
4. Remain on the Playground page, with the window active, long enough for a few events to appear on the page. The time it takes for events to appear depends on the rate you have set up in the extension.
35
-
<Cardtitle="Example">
36
-
If your rate is €0.60 <abbrtitle="euros">EUR</abbr> an hour, then it will
37
-
take 5-6 minutes for three events to appear.
38
-
</Card>
33
+
<Cardtitle="Example">
34
+
If your rate is €0.60 <abbrtitle="euros">EUR</abbr> an hour, then it will
35
+
take 5-6 minutes for three events to appear.
36
+
</Card>
39
37
5. Select **Disable** to stop the payments.
40
38
6. Sign in to your <LinkOuthref="https://wallet.interledger-test.dev/">Interledger test wallet</LinkOut> and select **Transactions** from the left menu. A completed outgoing payment appears for each event, as well as a single pending incoming payment with a zero amount.
41
-
<Cardtitle="Outgoing payment amounts">
42
-
To mimic how a real wallet provider could act, the Interledger test network
43
-
deducts a 0.01 fee from each outgoing payment. If your rate is €0.60{''}
44
-
<abbrtitle="euros">EUR</abbr> an hour, each Playground event will show €0.01
45
-
EUR while each outgoing payment in your transaction list will show a debit of
46
-
€0.02.
47
-
</Card>
39
+
<Cardtitle="Outgoing payment amounts">
40
+
To mimic how a real wallet provider could act, the Interledger test network
41
+
deducts a 0.01 fee from each outgoing payment. If your rate is €0.60{''}
42
+
<abbrtitle="euros">EUR</abbr> an hour, each Playground event will show
43
+
€0.01 EUR while each outgoing payment in your transaction list will show a
44
+
debit of €0.02.
45
+
</Card>
48
46
7. Wait 10 minutes, then refresh the page. The pending incoming transaction will show as completed and reflect the amount deposited into your wallet.
49
-
<Cardtitle="Example">
50
-
If your rate is €0.60 <abbrtitle="euros">EUR</abbr> an hour and you waited
51
-
for three Playground events, your incoming payment will be approximately
52
-
€0.03.
53
-
</Card>
54
-
</Steps>
47
+
<Cardtitle="Example">
48
+
If your rate is €0.60 <abbrtitle="euros">EUR</abbr> an hour and you waited
49
+
for three Playground events, your incoming payment will be approximately
50
+
€0.03.
51
+
</Card>
55
52
56
53
## Receive a one-time payment
57
54
58
-
{/* prettier-ignore */}
59
-
<Steps>
60
-
1. Go to the <LinkOuthref="https://webmonetization.org/play/">Web Monetization Playground</LinkOut>.
55
+
1. Go to the <LinkOuthref="https://webmonetization.org/play/">
56
+
Web Monetization Playground</LinkOut>.
61
57
2. Enter your wallet account's payment pointer into the field and select **Add monetization link**.
62
-
:::note[Forgot your payment pointer?]
63
-
Open the extension and select the cog icon. Then, select the **Wallet** tab and copy your payment pointer from the **Connected wallet address** field.
64
-
:::
58
+
:::note[Forgot your payment pointer?]
59
+
Open the extension and select the cog icon. Then, select the **Wallet** tab and copy your payment pointer from the **Connected wallet address** field.
60
+
:::
65
61
3. Open the extension, enter a one-time payment amount, then click **Send now**. A new event will appear in the Playground almost immediately.
66
62
4. Sign in to your <LinkOuthref="https://wallet.interledger-test.dev/">Interledger test wallet</LinkOut> and select **Transactions** from the left menu. A completed outgoing and incoming payment will appear.
67
-
<Cardtitle="Incoming payment amount">
68
-
To mimic how a real wallet provider could act, the Interledger test network
69
-
might show a 0.01 fee deducted from each outgoing payment. If you made a
70
-
one-time payment of €1.00 <abbrtitle="euros">EUR</abbr>, for example, the
71
-
completed incoming payment might be for €0.99.
72
-
</Card>
73
-
</Steps>
63
+
<Cardtitle="Incoming payment amount">
64
+
To mimic how a real wallet provider could act, the Interledger test network
65
+
might show a 0.01 fee deducted from each outgoing payment. If you made a
66
+
one-time payment of €1.00 <abbrtitle="euros">EUR</abbr>, for example, the
Use Interledger Foundation's Web Monetization browser extension to send payments to a web monetized site without using real money.
@@ -13,47 +13,32 @@ You must have a [funded test wallet account](/guides/test-wallet-sign-up) on Int
13
13
14
14
## Install the extension
15
15
16
-
{/* prettier-ignore */}
17
-
<Steps>
18
-
<ol>
19
-
<li>Sign in to your <LinkOuthref="https://wallet.interledger-test.dev/">wallet account</LinkOut>.</li>
20
-
<li>Download and install Interledger Foundation's [Web Monetization browser extension](/supporters/get-started#install-the-extension).</li>
21
-
<li>
22
-
Enter the payment pointer associated with your test wallet. For example, `$ilp.interledger-test.dev/mytestwallet`. Then, enter a budget amount and click **Connect**.
23
-
<img
24
-
src="/img/docs/extension/connection-setup.png"
25
-
alt="Extension setup screen with wallet address and amount fields, renew monthly toggle, and connect button"
26
-
style="max-width:300px"
27
-
class="img-outline"
28
-
/>
29
-
</li>
30
-
<li>Click **Agree** to allow the extension to connect to your wallet.</li>
31
-
<li>Click **Accept** on the Interledger request screen.</li>
32
-
</ol>
33
-
</Steps>
16
+
1. Sign in to your <LinkOuthref="https://wallet.interledger-test.dev/">wallet account</LinkOut>.
17
+
2. Download and install Interledger Foundation's [Web Monetization browser extension](/supporters/get-started#install-the-extension).
18
+
3. Enter the payment pointer associated with your test wallet. For example, `$ilp.interledger-test.dev/mytestwallet`. Then, enter a budget amount and click **Connect**.
19
+
<img
20
+
src="/img/docs/extension/connection-setup.png"
21
+
alt="Extension setup screen with wallet address and amount fields, renew monthly toggle, and connect button"
22
+
style="max-width:300px"
23
+
class="img-outline"
24
+
/>
25
+
4. Click **Agree** to allow the extension to connect to your wallet.
26
+
5. Click **Accept** on the Interledger request screen.
34
27
35
28
## Configure continuous payments (optional)
36
29
37
30
By default, the extension sends continuous payments at a rate of $0.60 <abbrtitle="US dollars">USD</abbr> an hour ($0.01 a minute), or the equivalent in your chosen currency based on the exchange rate.
38
31
39
32
To change the rate of pay:
40
33
41
-
{/* prettier-ignore */}
42
-
<Steps>
43
-
<ol>
44
-
<li>Click the **Settings** icon in the upper-right of the extension.</li>
45
-
<li>
46
-
Select the *Rate* tab, then enter the amount to send, per hour, to web
47
-
monetized sites. Your changes are automatically saved.
48
-
<img
49
-
src="/img/docs/extension/rate-tab.png"
50
-
alt="Rate tab with rate of pay per hour field and continuous payment toggle"
51
-
style="max-width:300px"
52
-
class="img-outline"
53
-
/>
54
-
</li>
55
-
</ol>
56
-
</Steps>
34
+
1. Click the **Settings** icon in the upper-right of the extension.
35
+
2. Select the _Rate_ tab, then enter the amount to send, per hour, to web monetized sites. Your changes are automatically saved.
36
+
<img
37
+
src="/img/docs/extension/rate-tab.png"
38
+
alt="Rate tab with rate of pay per hour field and continuous payment toggle"
39
+
style="max-width:300px"
40
+
class="img-outline"
41
+
/>
57
42
58
43
## Send continuous payments
59
44
@@ -63,49 +48,36 @@ This page's test wallet receives all payments in Mexican pesos (MX$) regardless
|| The extension is sending continuous payments. |
69
-
|| The extension is not sending continuous payments. Refresh the page. |
|| The extension is sending continuous payments. |
54
+
|| The extension isn't sending continuous payments. Refresh the page. |
70
55
71
-
Each payment appears within the _Monetization events_ section on the test site.<br /><imgsrc='/img/docs/testwallet/testwallet-sid-continuous-events.png'alt='Monetization events section showing two payments of MXN 0.21'style='max-width:250px'class='img-outline'/>
56
+
Each payment appears in the _Monetization events_ section on the test site.<br /><imgsrc='/img/docs/testwallet/testwallet-sid-continuous-events.png'alt='Monetization events section showing two payments of MXN 0.21'style='max-width:250px'class='img-outline'/>
72
57
73
58
If your extension is using <abbrtitle="US dollars">USD</abbr> with the default rate of $0.60 an hour, a new event appears on the site about every two minutes as long as the window is active. Continuous payments stop when the window is inactive. Keep the window active until a few payment events appear. Then, sign in to your <LinkOuthref="https://wallet.interledger-test.dev/">wallet account</LinkOut> and select **Transactions** to see the payments you've sent.
alt="Monetization events section showing two payments of MXN 0.21 and a one-time payment of 19.92"
105
-
style="max-width:250px"
106
-
class="img-outline"
107
-
/>
108
-
</li>
109
-
<li>Sign in to your{''}<LinkOuthref="https://wallet.interledger-test.dev/">wallet account</LinkOut>{''}and select **Transactions** to see the payment you just sent.</li>
alt="Monetization events section showing two payments of MXN 0.21 and a one-time payment of 19.92"
80
+
style="max-width:250px"
81
+
class="img-outline"
82
+
/>
83
+
5. Sign in to your <LinkOuthref="https://wallet.interledger-test.dev/">wallet account</LinkOut> and select **Transactions** to see the payment you just sent.
0 commit comments