{"id":13341668,"url":"https://github.com/andrewhancox/moodle-local_webmonetization","last_synced_at":"2025-03-11T22:31:23.157Z","repository":{"id":142254175,"uuid":"333069790","full_name":"andrewhancox/moodle-local_webmonetization","owner":"andrewhancox","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-15T10:46:45.000Z","size":44,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-24T10:07:03.680Z","etag":null,"topics":["interledger","interledger-protocol","payment-pointers","web-monetization"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewhancox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-26T11:55:06.000Z","updated_at":"2023-10-26T06:54:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"7590eff3-b5db-4ad2-aaa0-ad7c906c4faa","html_url":"https://github.com/andrewhancox/moodle-local_webmonetization","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewhancox%2Fmoodle-local_webmonetization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewhancox%2Fmoodle-local_webmonetization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewhancox%2Fmoodle-local_webmonetization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewhancox%2Fmoodle-local_webmonetization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewhancox","download_url":"https://codeload.github.com/andrewhancox/moodle-local_webmonetization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243125162,"owners_count":20240263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interledger","interledger-protocol","payment-pointers","web-monetization"],"created_at":"2024-07-29T19:25:41.815Z","updated_at":"2025-03-11T22:31:23.146Z","avatar_url":"https://github.com/andrewhancox.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is Web Monetization\n\nA JavaScript browser API which allows the creation of a payment stream from the user agent to the website.\n\n[Find out more](https://webmonetization.org/docs/explainer)\n\n## Set up guide\n### Set up as a content publisher\nIn order to use this plugin \n\n1. 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](https://webmonetization.org/docs/ilp-wallets)\n2. [Install Moodle](https://docs.moodle.org/310/en/Installing_Moodle)\n3. [Install this plugin into your Moodle site](https://docs.moodle.org/en/Installing_plugins#Installing_a_plugin). This plugin should be placed in the local/webmonetization directory in the root of your Moodle site.\n4. Navigate to Site administration \u003e Plugins \u003e Local plugins \u003e Web monetization, check the enable box and click save.\n5. Set up payment pointers throughout the site, you can do this in to ways:\n        \n    At a system level (thought the site administration link you visisted above)\n    \n    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.\n    \n    You will need the 'local/webmonetization:managepaymentpointers' capability in the context that you wish to set the pointer.\n    \nOnce 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.\n\nYou can see a Moodle site with the plugin installed and configured by going to Open Source Learning's example site [OSL Example site](https://examplesite.opensourcelearning.co.uk)\n\n### Set up as a content consumer\nIn order to send payments to a site using that has this plugin installed you will need to:\n1. Have an account or subscription with a Web Monetization provider (also known as a WM sender).\n2. 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.\n\nSigning up with [Coil](https://coil.com/) and installing one of their desktop browser extensions or their mobile puma browser is currently the easiest way to do this.\n\n## TODO:\n- [x] https://webmonetization.org/docs/receipt-verifier - https://github.com/coilhq/receipt-verifier\n- [x] Block access if no receipt\n- [x] Extend to system and course module contexts\n- [x] Build proper interstitial and failed pages\n- [x] Documentation\n- [x] Get listed https://help.coil.com/docs/monetize/content/platforms\n\nAuthor\n------\n\nThe module has been written and is currently maintained by Andrew Hancox on behalf of [Open Source Learning](https://opensourcelearning.co.uk).\n\nThe project is funded by [Grant for the Web](https://www.grantfortheweb.org) is a $100M fund to boost open, fair, and inclusive standards and innovation in Web Monetization.\n\nUseful links\n------------\n\n* [Moodle](https://moodle.org/)\n* [Coil](https://coil.com/)\n* [Open Source Learning](https://opensourcelearning.co.uk)\n* [Bug tracker](https://github.com/andrewhancox/moodle-local_webmonetization/issues)\n* [Grant for the Web](https://www.grantfortheweb.org)\n* [OSL Example site](https://examplesite.opensourcelearning.co.uk)\n\nLicense\n-------\n\nThis program is free software: you can redistribute it and/or modify it under the\nterms of the GNU General Public License as published by the Free Software Foundation,\neither version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY\nWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\nPARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this\nprogram. If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewhancox%2Fmoodle-local_webmonetization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewhancox%2Fmoodle-local_webmonetization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewhancox%2Fmoodle-local_webmonetization/lists"}