Billing Plugins
The file responsible for the domain plugin is hostvise/plugins/bpanel.php – if you wish to install a new plugin, the new plugin should replace the existing one.

Download PayPal Plugin (default)
To install overwrite plugin and modify “Settings->bPanel User/Email” with your paypal email.

Download AlertPay Plugin
To install overwrite plugin and modify “Settings->bPanel User/Email” with your alertpay business email.
For Developers
The billing plugin is located in the hostvise tree structure at plugins/bpanel.php.
Structure of plugins/bpanel.php
require_once("globals.php");
// language name of billing panel
define(LANG_BPANEL, "paypal");
// this class deals with the billing functionality ( Paypal)
class bPanel
{
public function __construct()
{
// does nothing
}
// handles a single payment
public function show($name,$cost,$isplan,$uid,$pid)
{
global $SETTING;
return 'single payment button';
}
// handles a recurring payment. if no recuring payment is available for this billing company, it MUST return NULL.
public function subscribe($name,$cost,$period,$isplan,$uid,$pid)
{
global $SETTING;
$per = bill_period($period,$isplan);
// $per[0] holds the number (1 or 3)
// $per[1] holds the type (M or Y)
// $per[2] holds the expiration (probably not used)
// the only time frames are 1M, 3M, or 1Y
return 'subscription button';
}
public function process()
{
// handles the actions of the IPN, should you wish to automatically setup accounts you MUST include this function. A call to the function processtransaction() must be made once data is received from the payment gateway.
processtransaction($userid,$planid,$isplan,$item_name,$payment_amount,LANG_BPANEL);
}
}