<<

NAME

pf::billing - Object oriented module for billing purposes

DESCRIPTION

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

SUBROUTINES

billing_db_prepare

Initialize database prepared statements

new

Constructor

Usually we don't call this constructor but we use the pf::billing::custom subclass instead. This will allow methods redefinition.

createNewTransaction

TODO: Add some verification that all the information is there and in a good format.

getAvailableTiers

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

instantiateNewTransaction

Instantiate a new transaction using the payment gateway configured.

processTransaction
updateTransactionStatus

Update the status of a transaction in the database

prepareConfirmationInfo

Provides basic information for the billing confirmation email template.

This is meant to be overridden in pf::billing::custom.

AUTHOR

Inverse inc. <info@inverse.ca>

COPYRIGHT

Copyright (C) 2005-2015 Inverse inc.

LICENSE

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.

<<