Project title: | niteoweb.clickbank |
---|---|
Latest version: | 0.6 |
Author: | NiteoWeb Ltd. |
Generated: | August 19, 2010 |
License: | GPLv2 |
URL: | http://pypi.python.org/pypi/niteoweb.clickbank |
Docs: | http://packages.python.org/niteoweb.clickbank |
Source: | http://svn.plone.org/svn/collective/niteoweb.clickbank |
Browse source: | http://dev.plone.org/collective/browser/niteoweb.clickbank |
Visitor comes to yoursite.com/order (or similar) and clicks Order link.
where he enters his personal information and performs payment.
which reads POST data from ClickBank, verifies it with your Secret Key and creates a new member.
ClickBank’s Product ID of the purchased item.
Affiliate who referred the buyer.
ClickBank receipt ID of the last purchase. This field gets updated on every recurring payment.
Exact timestamp of the last purchase. This field gets updated on every recurring payment.
Upon creating a new member, Plone send an email with login password.
An IMemberCreateEvent is emitted upon creating a new member.
New member can now login and use the site.
Note
If a member already exists in Plone, then the @@clickbank view simply updates last_purchase_id and last_purchase_timestamp member fields.
You can see this product in action at http://bigcontentsearch.com/order.
To install in your own buildout just add it to your buildout’s eggs and zcml listing as normal:
eggs =
Plone
niteoweb.clickbank
...
zcml =
niteoweb.clickbank
...
Go to ClickBank and create a Vendor account. Add a test Product of type Membership. Then set the following:
Go to Site Setup -> ClickBank control panel form and configure the following fields:
- Secret Key
Paste the Secret Key you defined above.
Create a Page Order. Insert the following markup, replacing capitalized strings:
<a href="http://PRODUCT_ID.VENDOR_ID.pay.clickbank.net">Order a subscription to this site!</a>
Create a Page Thank You. Insert the following text:
Thank you for your order!
Your credit card or bank statement will show a charge by ClickBank or CLKBANK*COM.
If you have any questions let us know on info@yoursite.com"
Fire up your browser and point it to your Order page. Click on Order a subscription to this site!, fill in your Test Credit Card info with your personal email and purchase the subscription. Confirm by logging-in to ClickBank and checking to see if there were any purchases. You should also receive an email with username and password for accessing your site.
The following known issues exist:
- If members stop paying for monthly or yearly subscriptions,
you have to manually delete them from your Plone site.
- The same as above goes for any chargebacks or refunds.
You have to manage them manually.
Open up a console and run the following:
$ cd <workspace>/niteoweb.clickbank
# run a specific test
$ bin/test -s niteoweb.clickbank -t test_setup
# run all tests
$ bin/test -s niteoweb.clickbank
# calculate code test coverage
$ bin/coverage-test -s niteoweb.clickbank
Open up a console and run the following:
$ cd <workspace>/niteoweb.clickbank
# use zest.releaser to make an egg distribution and upload it to PyPI
$ fullrelease
# build sphinx docs and upload them to packages.python.org
$ bin/sphinxbuilder
$ python setup.py upload_docs
A BrowserView that ClickBank calls after a purchase.
Verifies if received POST is a valid ClickBank POST request.
Parameter: | params (dict) – POST parameters sent by ClickBank Notification Service |
---|
Parses POST from ClickBank and extracts information we need.
Parameter: | params (dict) – POST parameters sent by ClickBank Notification Service |
---|
Creates a new Plone member. In case the member already exists, this method simply updates member’s fields.
Parameters: |
|
---|
Send an email with member’s password.
Parameters: |
|
---|
Generate random password in base64.
Parameters: |
|
---|---|
Returns: | a random password |
Return type: | string |
This interface defines fields for ClickBank plone_control_panel configlet.
We use this base class for all functional tests in this package. These tests are full-blown functional test. The emphasis is on testing what the user may input and see, and the system is largely tested as a black box. We use PloneTestCase to set up this test as well, so we have a full Plone site to play with. We use zope.testbrowser to test end-to-end functionality, including the UI. For testing stuff on the lower levels use integration or unit tests.
Test installation of niteoweb.clickbank into Plone.
Test all aspects of @@clickbank.
- Emit MemberCreatedEvent when @@clickbank view creates a new member. [zupo]
- Added parameters and return information to docstrings. [zupo]
- Login credentials email body text is now templated. [zupo]
- Big refactoring and cleanup. [zupo]
- Loads of tests. [zupo]
- Use email as username. [zupo]
- Added ClickBank properties to member data. [zupo]
- Added @@clickbank BrowserView. [iElectric]
- Added Plone Control Panel configlet. [zupo]
- Initial release. [zupo]