CCVS API FunctionsCCVS
These functions interface the CCVS API, allowing you to directly
work with CCVS from your PHP scripts. CCVS is RedHat's solution to the "middle-man"
in credit card processing. It lets you directly address the
credit card clearing houses via your *nix box and a modem. Using
the CCVS module for PHP, you can process credit cards directly
through CCVS via your PHP Scripts. The following references will
outline the process.
To enable CCVS Support in PHP, first verify your CCVS installation
directory. You will then need to configure PHP with the option. If you use this
option without specifying the path to your CCVS installation, PHP
Will attempt to look in the default CCVS Install location
(/usr/local/ccvs). If CCVS is in a non-standard location, run
configure with: , where $ccvs_path
is the path to your CCVS installation. Please note that CCVS
support requires that $ccvs_path/lib and $ccvs_path/include exist,
and include cv_api.h under the include directory and libccvs.a
under the lib directory.
Additionally, a ccvsd process will need to be running for the
configurations you intend to use in your PHP scripts. You will
also need to make sure the PHP Processes are running under the
same user as your CCVS was installed as (e.g. if you installed
CCVS as user 'ccvs', your PHP processes must run as 'ccvs' as
well.)
Additional information about CCVS can be found at &url.redhat.ccvs;.
This documentation section is being worked on. Until then, RedHat
maintains slightly outdated but still useful documentation at
&url.redhat.support;.
Update: CCVS has been discontinued by Red Hat and there are no plans
to issue further keys or support contracts. Those looking for a
replacement can consider
MCVE by Main Street Softworks
as a potential replacement. It is similar in design and has documented
PHP support!
ccvs_initInitialize CCVS for useDescriptionstringccvs_initstringname
&warn.undocumented.func;
ccvs_doneTerminate CCVS engine and do cleanup workDescriptionstringccvs_donestringsess
&warn.undocumented.func;
ccvs_newCreate a new, blank transaction Descriptionstringccvs_newstringsessionstringinvoice
&warn.undocumented.func;
ccvs_addAdd data to a transaction Descriptionstringccvs_addstringsessionstringinvoicestringargtypestringargval
&warn.undocumented.func;
ccvs_deleteDelete a transactionDescriptionstringccvs_deletestringsessionstringinvoice
&warn.undocumented.func;
ccvs_auth
Perform credit authorization test on a transaction
Descriptionstringccvs_authstringsessionstringinvoice
&warn.undocumented.func;
ccvs_return
Transfer funds from the merchant to the credit card holder
Descriptionstringccvs_returnstringsessionstringinvoice
&warn.undocumented.func;
ccvs_reverse
Perform a full reversal on an already-processed authorization
Descriptionstringccvs_reversestringsessionstringinvoice
&warn.undocumented.func;
ccvs_sale
Transfer funds from the credit card holder to the merchant
Descriptionstringccvs_salestringsessionstringinvoice
&warn.undocumented.func;
ccvs_void
Perform a full reversal on a completed transaction
Descriptionstringccvs_voidstringsessionstringinvoice
&warn.undocumented.func;
ccvs_statusCheck the status of an invoiceDescriptionstringccvs_statusstringsessionstringinvoice
&warn.undocumented.func;
ccvs_count
Find out how many transactions of a given type are stored in the system
Descriptionintccvs_countstringsessionstringtype
&warn.undocumented.func;
ccvs_lookup
Look up an item of a particular type in the database #
Descriptionstringccvs_lookupstringsessionstringinvoiceintinum
&warn.undocumented.func;
ccvs_reportReturn the status of the background communication process Descriptionstringccvs_reportstringsessionstringtype
&warn.undocumented.func;
ccvs_command
Performs a command which is peculiar to a single protocol,
and thus is not available in the general CCVS API
Descriptionstringccvs_commandstringsessionstringtypestringargval
&warn.undocumented.func;
ccvs_textvalueGet text return value for previous function callDescriptionstringccvs_textvaluestringsession
&warn.undocumented.func;