Click2Sell.eu integration for Plone
How it works
Visitor comes to
yoursite.com/order(or similar) and clicks Order link.
Visitor is sent to Click2Sell's order form (on
http://click2sell.eu), where he enters his personal information and performs payment.
Click2sell calls-back a special view on your plone site (
/@@click2sell), which reads POST data from Click2Sell, verifies it against your
Secret Keyand creates a new member.
The following information is stored in member data for later use:
Click2Sell's Product ID of the purchased item.
Click2Sell's Product Name of the purchased item.
Affiliate who referred the buyer.
Click2Sell's 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 sends an email with login password.
IMemberCreateEventis emitted upon creating a new member.
The new member can now login and use the site.
It is possible to create a
group_namemapping in Plone Control Panel. This means that if a member purchased a product which is listed in this mapping, the member will also be added to a group mapped to this product.
If a member already exists in Plone, then the
@@click2sell view simply
last_purchase_timestamp member fields.
The member will also be added to the new product group, but also kept in
You can see this product in action at BigContentSearch.
niteoweb.click2sell you simply add
niteoweb.click2sell to the list of eggs in your buildout, run
buildout and restart Plone. Then, install niteoweb.click2sell using the
Add-ons control panel.
Go to Click2Sell.eu and use
For Merchant ->
Add Product to add a new Product.
Then click on your new Product and select
API Settings. For URL to notify
http://yoursite.com/@@click2sell and also choose a Secret Key.
Enable/Disable remote server's notification to enable server
notifications and consequently member auto-registering.
Site Setup ->
click2sell control panel form and configure
Secret Key field by pasting in the Secret Key you defined above.
You can also configure the
group_name mapping. This comes
in effect when member purchases a product which is listed in this mapping, the
member will also be added to a group mapped to this product.
For example, imagine you have the following in your mapping:
Members purchasing the product with id
1 will be added to the
basic-members group, whose purchasing
2 will be added to the
premium-members group. For others, nothing will be done.
When switching products, an updated member will be added to new product group, but also kept in the old group. No information is removed/deleted.
You are now ready to do a test buy! Go back to
My Products and click
Test BUY. Before you finish the transaction, you need to set up your Plone
site to receive Click2Sell server notifications.
Confirm by logging-in to Click2Sell and checking to see if there were any purchases. Also check if your receive an email with username and password for accessing your site and try to login with them.
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.