{"id":19123136,"url":"https://github.com/digitalbazaar/payswarm-wordpress","last_synced_at":"2025-05-05T18:33:29.553Z","repository":{"id":66015284,"uuid":"2138523","full_name":"digitalbazaar/payswarm-wordpress","owner":"digitalbazaar","description":"PaySwarm plugin for WordPress","archived":false,"fork":false,"pushed_at":"2014-10-23T21:49:33.000Z","size":751,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-19T11:08:36.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalbazaar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-01T19:19:40.000Z","updated_at":"2020-06-27T11:30:40.000Z","dependencies_parsed_at":"2023-02-19T21:15:47.473Z","dependency_job_id":null,"html_url":"https://github.com/digitalbazaar/payswarm-wordpress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fpayswarm-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fpayswarm-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fpayswarm-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fpayswarm-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalbazaar","download_url":"https://codeload.github.com/digitalbazaar/payswarm-wordpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252552949,"owners_count":21766803,"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":[],"created_at":"2024-11-09T05:24:30.145Z","updated_at":"2025-05-05T18:33:29.536Z","avatar_url":"https://github.com/digitalbazaar.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"PaySwarm Plugin for WordPress\n=============================\n\nIntroduction\n------------\n\n[PaySwarm][] enables people who create digital content such as blog posts,\nmusic, film, episodic content, photos, virtual goods, and documents to\ndistribute their creations through their website and receive payment directly\nfrom their fans and customers. If you have a passion for creating things on the\nWeb or would like to support people doing great things - PaySwarm is for you.\n\nThe platform is an open, patent and royalty-free web standard that enables Web\nbrowsers and Web devices to perform Universal Web Payment. PaySwarm fixes the\nproblems with rewarding people on the web - it reduces and nearly eliminates\ntransactional friction. It ensures that the people who you want to support are\nautomatically rewarded for their hard work.\n\nThis technology can be integrated directly into WordPress-based websites with\nsupport for Drupal and other content management systems in the works. It has a\nsimple, well-defined API, like Twitter, that allows for universal payment on\nthe web.\n\nWordPress Plugin\n----------------\n\nThis is a [WordPress][] plugin that implements a PaySwarm client. This plugin\ncan be installed in a normal WordPress 3.x site, allowing page authors to\ncharge a small fee for selected posts that they write.\n\nOnce the plugin is installed, the author of a post has a few options that\nthey can use to markup the post. They can indicate the pieces of the post\nthat must be paid for, what to display for posts that haven't been paid for,\nand where to place the button that initiates the payment process.\n\nA typical post will look like this:\n\n```html\nThis is free content; anyone can see it.\n\nBEGIN_PAYSWARM_PAID_CONTENT\n\nThis is paid content; only people who have paid can see it.\n```\n\nAn author can also provide text that will only be shown for people who\nhaven't paid for the post:\n\n```html\nThis is free content; anyone can see it.\n\nBEGIN_PAYSWARM_UNPAID_ONLY_CONTENT\nThis is unpaid-only content; it will be hidden once the post has been paid for.\nEND_PAYSWARM_UNPAID_ONLY_CONTENT\n\nBEGIN_PAYSWARM_PAID_CONTENT\nThis is paid content; only people who have paid can see it.\nEND_PAYSWARM_PAID_CONTENT\n```\n\nThe author can also decide where they want to place the button\nthat initiates the purchase as well as a short piece of text that\nwill be shown beside the access button:\n\n```html\nThis is free content; anyone can see it.\n\nPAYSWARM_ACCESS_BUTTON Fund my coffee addiction so I can post more!\n\nBEGIN_PAYSWARM_PAID_CONTENT\nThis is paid content; only people who have paid can see it.\nEND_PAYSWARM_PAID_CONTENT\n```\n\nIf no access button markup is specified but paid content markup is, then\nthe access button will appear, with some default text, at the end of the post.\n\nIf you want to add a donation button to your post but keep all of the\ncontent available for free, just add a PAYSWARM_ACCESS_BUTTON and no\nother special PaySwarm tags:\n\n```html\nThis is free content; anyone can see it. However, please donate so I can\nkeep creating more great content!\n\nPAYSWARM_ACCESS_BUTTON Donate\n\n```\n\nThe price of the post, the license that is granted upon purchase, and other\npost-specific values can be changed on a per-post basis. Future versions of\nthe plugin may allow authors to let their readers set their own donation\namounts for articles.\n\nPrerequisites\n--------------\n\nBefore you install this plugin, you will need the following software:\n\n1. A [WordPress][] website (version 3.x or greater)\n2. [PHP][] (version 5.3 or greater)\n3. [wget][]\n4. [make][]\n\nBasic Development Install\n-------------------------\n\nGo to your WordPress installation and run the following commands:\n\n    cd wp-content/plugins/\n    git clone git://github.com/digitalbazaar/payswarm-wordpress.git payswarm\n    cd payswarm\n    make\n\nPaySwarm Plugin Setup\n---------------------\n\nTo configure your new PaySwarm plugin for WordPress, you must do the\nfollowing steps:\n\n1. [Register for a PaySwarm account][].\n2. Login as administrator on your WordPress website.\n3. Go to the PaySwarm Plugin page (select Plugins -\u003e PaySwarm).\n4. Click the \"Register this site\" button.\n5. Click the \"Add Identity\" button.\n6. Enter the name of your WordPress website (e.g. \"Good Food\").\n7. Select \"Vendor\" for the type of Identity.\n8. Enter the address for your website (e.g. \"http://foo.bar.com\").\n9. Enter a short description of your website (e.g. \"Good Food strives to discover and share delicous recipes.\").\n10. Enter the name of your new WordPress website Financial Account (e.g. \"Blogging Revenue\").\n11. Select \"Public\" for the type of Account Visibility.\n12. Click the \"Add\" button.\n13. Enter the name of your Access Key Label (e.g. \"Good Food Vendor Key 2012-09-25\")\n14. Click the \"Register\" button.\n15. If there are no errors when you get back to the WordPress plugin page, registration was successful.\n16. Go to the PaySwarm Plugin Settings page (select Settings -\u003e PaySwarm).\n17. Set the default price for posts (e.g. \"0.05\")\n18. Click the \"Save Changes\" button.\n19. The PaySwarm Session widget should be automatically installed. To ensure\n  that is installed and appears where you want it to, select Appearance -\u003e Widgets\n  and look for the \"PaySwarm Session\" widget. Drag and drop it to where you'd\n  like it to appear. This widget will display to your customers when they are\n  logged into their PaySwarm provider and are browsing your website.\n\nGetting the Source Code\n-----------------------\n\nThe source code for the PaySwarm WordPress plugin is available at:\n\nhttp://github.com/digitalbazaar/payswarm-wordpress\n\nBuilding the WordPress Package\n------------------------------\n\nPrerequisites: wget, git, make\n\nTo build the WordPress package for distribution, you must have cloned the git\nrepository and have the 'wget' and 'make' programs available. Type the\nfollowing command to build the package:\n\n    make package\n\nWorking with the Source Code\n----------------------------\n\nPrerequisites: A working WordPress 3.0+ install, wget, git, make\n\nYou can clone the payswarm-wordpress git repository directly into your\nWordPress wp-content/plugins/ directory and hack on the plugin directly by\ndoing the following:\n\n    cd wp-content/plugins/\n    git clone git://github.com/digitalbazaar/payswarm-wordpress.git payswarm\n    cd payswarm\n    make\n\n[PaySwarm]: http://payswarm.com/\n[WordPress]: http://wordpress.org/\n[PHP]: http://www.php.net/\n[wget]: http://www.gnu.org/software/wget/\n[make]: http://www.gnu.org/software/make/\n[Register for a PaySwarm Account]: https://dev.payswarm.com/profile/create\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fpayswarm-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalbazaar%2Fpayswarm-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fpayswarm-wordpress/lists"}