Billing plugin feature Print
Wednesday, 18 July 2012

The billing plugin functionality is a separately licensed feature enabling the possibility to set fee and cost per message from a plugin (preferably in Perl).

In its simplest form it can set the fee and cost to hard-coded values:

	$qe->{CHARGE} = 0.03211;
	$qe->{CHARGE_COST} = 0.02456;

However, in a more realistic scenario it would probably calculate the pricing based on information from database tables, LDAP lookups or similar.

Sample plugin (written in Perl) using the EMG Portal database schema to determine message fee and cost: