Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time



WebsiteFee is a Zikula module that enables subscription payments from PayPal and recieves notification by PayPal IPN. Once implemented, a user pays for a subscription and is added to a Zikula group. That group is configured to have special access to the site.

Code Example

There are two parts two the implmentation.

  1. Create a PayPal button that points to of your Zikula site. This is the routine that handles the instant payment notification. Here is an example of an appropriate PayPal button. Note the userid has to be generated dymanically.
<form action="" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2DJHSDF86SF6Y">
<input type="image" src="" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="" width="1" height="1">

In the hosted button, you have to edit the advanced features and put in a notify_url= This assumes that your Zikula site is in the root directory. When you create your button, you will need to remember the item number and the price you are charging.

  1. Create a subscription in the WebsiteFee module. Here you will enter the name of the subscription, the price and the item number. These will be checked when notifications come through.


This is a simple implementation of the PayPal IPN system.


This installs just like any other Zikula module. Further set up is as described in the code sample


Test code is provided in the Subscrition testsubscribe method. You can change the twig template websitefee_subscribe_testsubscribe.html.twig. To fit your needs


This code is released under the GNU General Public License ( )