PX Daemon - LinuxThis is a legacy product, which isn't available to new customers. It is also only available on the documented kernels. The Payment Express® solution for E-Commerce is designed to provide customers with a connection to their choice of bank via the Internet for authorisation and settlement of Credit Card payments in real-time. Payment Express® provides a host computer on the web allowing for a gateway between the internet and bank settlement systems for credit card payments.
InstallationPx daemon for Linux is distributed in a GNU-zipped tarball: Where
This will create a subdirectory
You should place the daemon executable
You should place the configuration file You need to set up runlevel scripts to start the daemon at system startup and stop it at system shutdown, and optionally provide for restart and reload. These runlevel scripts may vary depending on your particular version of Linux. Configuring PX Daemon
px daemon is configured with a plain ASCII configuration file, typically Lines beginning with '#' are treated as comments. Other lines are either section headings or key-value pairs within a section. Section headings are enclosed in square brackets, such as: Key-value pairs are separated with an '=', like this: The sections, and the key-value pairs supported, are listed below: Section
|
| Key | Description |
| itpfirstaddress | Value is the symbolic name to try first in connecting to the DPS host. Default value: px1.payment.co.nz. |
| itpsecondaddress | Value is the symbolic name to try second in connecting to the DPS host. Default value: px2.payment.co.nz. |
| itpthirdaddress | Value is the symbolic name to try third in connecting to the DPS host. Default value: px3.payment.co.nz. |
| itpfirstaddressnum | Value is the numeric address to try first in connecting to the DPS host, if the
symbolic name cannot be resolved. Default value: 210.54.253.161. |
| itpsecondaddressnum | Value is the numeric address to try second in connecting to the DPS host, if
the symbolic name cannot be resolved. Default value: 210.54.253.162. |
| itpthirdaddressnum | Value is the numeric address to try third in connecting to the DPS host, if the
symbolic name cannot be resolved. Default value: 210.54.253.165. |
| itpfirstport | Value is the port to try first in connecting to the DPS host. Default value: 3007. |
| itpsecondport | Value is the port to try second in connecting to the DPS host. Default value: 3007. |
| itpthirdport | Value is the port to try third in connecting to the DPS host.
Default value: 3007. |
| username | Value is the encrypted username for logging on the the DPS host. See below. |
| password | Value is the encrypted password for logging on the the DPS host. See below. |
| hostresponsetimeout | Value is number of seconds allowed to pass without host heartbeat, before host
is disconnected. Default value: 60. |
[SERVER]| Key | Description |
| dbfilename | Value is the path and filename for the DB file to hold read/write data for
server. Default value: /etc/pxd.db. |
| inetaddress | Value is first IP address to listen on. Typically, this value is set to the
address of localhost, to accept incoming requests from the same
machine. Default value: 127.0.0.1. |
| inetaddress2 | Value is second IP address to listen on. Typically, this is an ethernet
address, and is used to accept requests from other machines on an intranet.
Note: this parameter is ignored, unless enableaddress2 = TRUE.
Default value: 127.0.0.1. |
| inetxmlport | Value is the TCP/IP port to listen on. Note: The Linux server supports only the
"new" XML interface, which by convention is on port 3004. The Linux
server does not support the "legacy" interface on port 3005. Default value: 3004. |
| enableaddress2 | Value determines whether to listen on second address. Default value: FALSE. |
DPS allocates each customer a logon username and password for accessing the DPS host. These have to be included in the configuration file.
For security reasons, the username and password are encrypted.
To generate the encrypted username and password for your configuration file,
run pxd with the special -g option ("generate"):
The file out that you have created contains the config file lines
for the username and password, encrypted. Add these lines to your config file,
in the [HOST] section.
You need to create runlevel scripts to start the daemon. (These scripts are system-dependent, and vary according to the specific version of Linux you are running. See your system documentation.)
If your configuration file is /etc/pxd.conf, i.e. the default,
then the daemon does not need any additional command-line information. If you
want to specify an alternative configuration file, give it as the command-line
parameter to pxd.
When the daemon starts, it stores its main pid in /var/run/pxd.pid.
When the daemon terminates, it should delete this pidfile.
You can cause the daemon to reread its config file by sending it SIGHUP:
You can shutdown the daemon by sending it SIGKILL:
The px daemon logs interesting events and error messages in syslog. By default,
the daemon uses syslog facility local0, but this can be changed in
the configuration file.
You can control where the messages are logged in your syslog configuration,
typically syslog.conf.
For example, the following lines specify that all px server messages are stored
in pxd.log, and error and above messages are also repeated in pxd_err.log:
You can also control, in the configuration file, what level of messages are retained.
For maximum output, when diagnosing problems, specify LOG_DEBUG.
This causes full function call tracing to be included in the log.
For normal operation, use LOG_NOTICE.
Messages of level LOG_ERR are prefixed by Error:, so
they can be identified easily in the log. Messages of level LOG_CRIT
are prefixed by Critical Error:.
Are all required sections and keys in pxd.conf? If not, you will see error messages in the log.
Does pxd.conf contain CRLFs? pxd, like many UNIX programs, does not recognise CRLF from DOS systems as a line-end marker. Make sure your configuration file ends lines with LF (0x0A) only.
Are your host parameters correct? Make sure you verify the following parameters with DPS: