Name: payswarm-wordpress
Owner: Digital Bazaar, Inc.
Description: PaySwarm plugin for WordPress
Created: 2011-08-01 19:19:40.0
Updated: 2015-12-07 10:59:51.0
Pushed: 2014-10-23 21:49:33.0
Size: 751
Language: CSS
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
PaySwarm enables people who create digital content such as blog posts, music, film, episodic content, photos, virtual goods, and documents to distribute their creations through their website and receive payment directly from their fans and customers. If you have a passion for creating things on the Web or would like to support people doing great things - PaySwarm is for you.
The platform is an open, patent and royalty-free web standard that enables Web browsers and Web devices to perform Universal Web Payment. PaySwarm fixes the problems with rewarding people on the web - it reduces and nearly eliminates transactional friction. It ensures that the people who you want to support are automatically rewarded for their hard work.
This technology can be integrated directly into WordPress-based websites with support for Drupal and other content management systems in the works. It has a simple, well-defined API, like Twitter, that allows for universal payment on the web.
This is a WordPress plugin that implements a PaySwarm client. This plugin can be installed in a normal WordPress 3.x site, allowing page authors to charge a small fee for selected posts that they write.
Once the plugin is installed, the author of a post has a few options that they can use to markup the post. They can indicate the pieces of the post that must be paid for, what to display for posts that haven't been paid for, and where to place the button that initiates the payment process.
A typical post will look like this:
is free content; anyone can see it.
N_PAYSWARM_PAID_CONTENT
is paid content; only people who have paid can see it.
An author can also provide text that will only be shown for people who haven't paid for the post:
is free content; anyone can see it.
N_PAYSWARM_UNPAID_ONLY_CONTENT
is unpaid-only content; it will be hidden once the post has been paid for.
PAYSWARM_UNPAID_ONLY_CONTENT
N_PAYSWARM_PAID_CONTENT
is paid content; only people who have paid can see it.
PAYSWARM_PAID_CONTENT
The author can also decide where they want to place the button that initiates the purchase as well as a short piece of text that will be shown beside the access button:
is free content; anyone can see it.
WARM_ACCESS_BUTTON Fund my coffee addiction so I can post more!
N_PAYSWARM_PAID_CONTENT
is paid content; only people who have paid can see it.
PAYSWARM_PAID_CONTENT
If no access button markup is specified but paid content markup is, then the access button will appear, with some default text, at the end of the post.
If you want to add a donation button to your post but keep all of the content available for free, just add a PAYSWARM_ACCESS_BUTTON and no other special PaySwarm tags:
is free content; anyone can see it. However, please donate so I can
creating more great content!
WARM_ACCESS_BUTTON Donate
The price of the post, the license that is granted upon purchase, and other post-specific values can be changed on a per-post basis. Future versions of the plugin may allow authors to let their readers set their own donation amounts for articles.
Before you install this plugin, you will need the following software:
Go to your WordPress installation and run the following commands:
cd wp-content/plugins/
git clone git://github.com/digitalbazaar/payswarm-wordpress.git payswarm
cd payswarm
make
To configure your new PaySwarm plugin for WordPress, you must do the following steps:
The source code for the PaySwarm WordPress plugin is available at:
http://github.com/digitalbazaar/payswarm-wordpress
Prerequisites: wget, git, make
To build the WordPress package for distribution, you must have cloned the git repository and have the 'wget' and 'make' programs available. Type the following command to build the package:
make package
Prerequisites: A working WordPress 3.0+ install, wget, git, make
You can clone the payswarm-wordpress git repository directly into your WordPress wp-content/plugins/ directory and hack on the plugin directly by doing the following:
cd wp-content/plugins/
git clone git://github.com/digitalbazaar/payswarm-wordpress.git payswarm
cd payswarm
make