A JavaScript browser API which allows the creation of a payment stream from the user agent to the website.
In order to use this plugin
-
Create a digital wallet and make a note of your payment pointer, there is a guide to doing this here: Digital Wallet and Payment Pointers
-
Install this plugin into your Moodle site. This plugin should be placed in the local/webmonetization directory in the root of your Moodle site.
-
Navigate to Site administration > Plugins > Local plugins > Web monetization, check the enable box and click save.
-
Set up payment pointers throughout the site, you can do this in to ways:
At a system level (thought the site administration link you visisted above)
By navigating to a Moodle category, course or course module, in the navigation menu there will be a link "Manage payment pointer", follow this link and enter your payment pointer.
You will need the 'local/webmonetization:managepaymentpointers' capability in the context that you wish to set the pointer.
Once you have done this Moodle will include the payment pointer for the context of the current page or it's nearest parent, e.g. a screen within an activity will look for payment pointers in the activity (course module), course, course category and then the system context and use the nearest one it finds.
You can see a Moodle site with the plugin installed and configured by going to Open Source Learning's example site OSL Example site
In order to send payments to a site using that has this plugin installed you will need to:
- Have an account or subscription with a Web Monetization provider (also known as a WM sender).
- Have a Web Monetization agent installed in their browser with the necessary authorization to initiate payments from the WM provider on the user's behalf.
Signing up with Coil and installing one of their desktop browser extensions or their mobile puma browser is currently the easiest way to do this.
- https://webmonetization.org/docs/receipt-verifier - https://github.com/coilhq/receipt-verifier
- Block access if no receipt
- Extend to system and course module contexts
- Build proper interstitial and failed pages
- Documentation
- Get listed https://help.coil.com/docs/monetize/content/platforms
The module has been written and is currently maintained by Andrew Hancox on behalf of Open Source Learning.
The project is funded by Grant for the Web is a $100M fund to boost open, fair, and inclusive standards and innovation in Web Monetization.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.