pf::billing - Object oriented module for billing purposes
pf::billing is a module to add billing capabilities to the captive-portal to allow guest to pay for network access. All of the methods of this module can be redefined using pf:billing:custom in lib/pf/billing/custom.pm
Initialize database prepared statements
Constructor
Usually we don't call this constructor but we use the pf::billing::custom subclass instead. This will allow methods redefinition.
TODO: Add some verification that all the information is there and in a good format.
Provide available tiers informations for different Internet access. For modification purposes (add tiers, modify tiers infos) please refer to pf::billing::custom. This way, modifications won't be overwritten when upgrading.
TODO: Put theses configuration in database and be able to modify them using the web GUI
Instantiate a new transaction using the payment gateway configured.
Update the status of a transaction in the database
Provides basic information for the billing confirmation email template.
This is meant to be overridden in pf::billing::custom.
Inverse inc. <info@inverse.ca>
Copyright (C) 2005-2015 Inverse inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.