<HTML ><HEAD ><TITLE >CCVS API Functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Function Reference" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="unixtojd" HREF="function.unixtojd.html"><LINK REL="NEXT" TITLE="ccvs_add" HREF="function.ccvs-add.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.unixtojd.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.ccvs-add.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.ccvs" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >VII. CCVS API Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN10609" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ccvs.intro" ></A >Introduction</H1 ><P > These functions interface the CCVS API, allowing you to work directly with CCVS from your PHP scripts. CCVS is <A HREF="http://www.redhat.com/" TARGET="_top" >RedHat's</A > 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. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > 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 <A HREF="http://www.mcve.com/" TARGET="_top" >MCVE by Main Street Softworks</A > as a potential replacement. It is similar in design and has documented PHP support! </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ccvs.installation" ></A >Installation</H1 ><P > To enable CCVS Support in PHP, first verify your CCVS installation directory. You will then need to configure PHP with the <TT CLASS="option" >--with-ccvs</TT > 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: <TT CLASS="option" >--with-ccvs=$ccvs_path</TT >, 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. </P ><P > 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.) </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ccvs.seealso" ></A >See Also</H1 ><P > Additional information about CCVS can be found at <A HREF="http://www.redhat.com/products/ccvs" TARGET="_top" >http://www.redhat.com/products/ccvs</A >. RedHat maintains slightly outdated but still useful documentation at <A HREF="http://www.redhat.com/products/ccvs/support/CCVS3.3docs/ProgPHP.html" TARGET="_top" >http://www.redhat.com/products/ccvs/support/CCVS3.3docs/ProgPHP.html</A >. </P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="function.ccvs-add.html" >ccvs_add</A > -- Add data to a transaction </DT ><DT ><A HREF="function.ccvs-auth.html" >ccvs_auth</A > -- Perform credit authorization test on a transaction </DT ><DT ><A HREF="function.ccvs-command.html" >ccvs_command</A > -- Performs a command which is peculiar to a single protocol, and thus is not available in the general CCVS API </DT ><DT ><A HREF="function.ccvs-count.html" >ccvs_count</A > -- Find out how many transactions of a given type are stored in the system </DT ><DT ><A HREF="function.ccvs-delete.html" >ccvs_delete</A > -- Delete a transaction</DT ><DT ><A HREF="function.ccvs-done.html" >ccvs_done</A > -- Terminate CCVS engine and do cleanup work</DT ><DT ><A HREF="function.ccvs-init.html" >ccvs_init</A > -- Initialize CCVS for use</DT ><DT ><A HREF="function.ccvs-lookup.html" >ccvs_lookup</A > -- Look up an item of a particular type in the database # </DT ><DT ><A HREF="function.ccvs-new.html" >ccvs_new</A > -- Create a new, blank transaction </DT ><DT ><A HREF="function.ccvs-report.html" >ccvs_report</A > -- Return the status of the background communication process </DT ><DT ><A HREF="function.ccvs-return.html" >ccvs_return</A > -- Transfer funds from the merchant to the credit card holder </DT ><DT ><A HREF="function.ccvs-reverse.html" >ccvs_reverse</A > -- Perform a full reversal on an already-processed authorization </DT ><DT ><A HREF="function.ccvs-sale.html" >ccvs_sale</A > -- Transfer funds from the credit card holder to the merchant </DT ><DT ><A HREF="function.ccvs-status.html" >ccvs_status</A > -- Check the status of an invoice</DT ><DT ><A HREF="function.ccvs-textvalue.html" >ccvs_textvalue</A > -- Get text return value for previous function call</DT ><DT ><A HREF="function.ccvs-void.html" >ccvs_void</A > -- Perform a full reversal on a completed transaction </DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.unixtojd.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.ccvs-add.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >unixtojd</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >ccvs_add</TD ></TR ></TABLE ></DIV ></BODY ></HTML >