Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 12187

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>MCVE (Monetra) Payment Functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="函数参考"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="mdecrypt_generic"
HREF="function.mdecrypt-generic.html"><LINK
REL="NEXT"
TITLE="m_checkstatus"
HREF="function.m-checkstatus.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></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 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.mdecrypt-generic.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.m-checkstatus.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.mcve"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>LXXXV. MCVE (Monetra) Payment Functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN116267"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mcve.intro"
>简介</A
></H1
><P
>&#13;     These functions interface the MCVE (Monetra) API (libmonetra, 
     formerly known as libmcve), allowing you
     to work directly with MCVE/Monetra from your PHP scripts.  
     MCVE/Monetra is Main Street Softworks' solution to direct
     credit/debit/gift card processing for Linux/Unix/MacOSX/Windows
     ( <A
HREF="http://www.mainstreetsoftworks.com/"
TARGET="_top"
>http://www.mainstreetsoftworks.com/</A
> ).
     It lets you directly address the credit card clearing houses via
     your *nix box, modem and/or internet connection (bypassing the
     need for an additional service such as Authorize.Net or Pay
     Flow Pro).  Using the MCVE/Monetra module for PHP, you can process
     credit cards directly through MCVE/Monetra via your PHP scripts.
     The following references will outline the process.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
      MCVE/Monetra is the replacement for RedHat's CCVS. They contracted with
      RedHat in late 2001 to migrate all existing clientele to the
      MCVE platform.
     </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
      本扩展已被移动到 <A
HREF="http://pecl.php.net"
TARGET="_top"
>PECL</A
> 库中且自以下版本起不再被绑定到 PHP 中:5.1.0.
     </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>本扩展模块在 Windows 平台下不可用。</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mcve.installation"
>安装</A
></H1
><P
>&#13;  To enable MCVE (Monetra) Support in PHP, first verify your LibMonetra
  (formerly libmcve) installation directory.  If you are compiling 
  MCVE/Monetra support directly into PHP, you will then need to configure
  PHP with the <CODE
CLASS="option"
>--with-mcve</CODE
> option.  If you
  use this option without specifying the path to your libmonetra installation,
  PHP will attempt to look in the default LibMonetra Install location
  (<TT
CLASS="filename"
>/usr/local</TT
>). If Monetra (MCVE) is in a non-standard
  location, run configure with: <CODE
CLASS="option"
>--with-mcve=$mcve_path</CODE
>, where $mcve_path
  is the path to your MCVE/Monetra installation.  Please note that
  MCVE/Monetra support requires that $mcve_path/lib and $mcve_path/include
  exist, and include <TT
CLASS="filename"
>mcve.h</TT
> or 
  <TT
CLASS="filename"
>monetra.h</TT
> under the include directory and
  <TT
CLASS="filename"
>libmcve.so</TT
> and/or <TT
CLASS="filename"
>libmcve.a</TT
> 
  and/or <TT
CLASS="filename"
>libmonetra.so</TT
> and/or 
  <TT
CLASS="filename"
>libmonetra.a</TT
> under the lib directory.
 </P
><P
>&#13;  If you want to install MCVE/Monetra support as a module, you can do
  so by using the PECL repository, and issuing the  'pecl install mcve'
  command if you are running a PEAR version of at least 1.4.0.
 </P
><P
>&#13;  Since MCVE/Monetra has true server/client separation, there are no
  additional requirements for running PHP with MCVE support.  To test
  your MCVE/Monetra extension in PHP, you may connect to 
  testbox.monetra.com on port 8333 for IP, or port 8444 for SSL using
  the MCVE/Monetra PHP API.
  Use 'vitale' for your username, and 'test' for your password.
  Additional information about test facilities are available at
  <A
HREF="http://www.mainstreetsoftworks.com/"
TARGET="_top"
>http://www.mainstreetsoftworks.com/</A
>.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mcve.seealso"
>参见</A
></H1
><P
>&#13;     Additional documentation about MCVE/Monetra's PHP API can be found
     at <A
HREF="http://www.mainstreetsoftworks.com/documentation.html"
TARGET="_top"
>http://www.mainstreetsoftworks.com/documentation.html</A
>. 
     Main Street's documentation is complete and should be the
     primary reference for functions.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mcve.resources"
>资源类型</A
></H1
><P
>&#13;     This extension defines a MCVE_CONN resource returned by
     <A
HREF="function.m-initconn.html"
><B
CLASS="function"
>m_initconn()</B
></A
>.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mcve.constants"
>预定义常量</A
></H1
><P
>以下常量由本扩展模块定义,因此只有在本扩展模块被编译到
PHP 中,或者在运行时被动态加载后才有效。</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>M_PENDING</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>M_DONE</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>M_ERROR</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>M_FAIL</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>M_SUCCESS</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;
    </P
></DD
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="function.m-checkstatus.html"
>m_checkstatus</A
>&nbsp;--&nbsp;Check to see if a transaction has completed</DT
><DT
><A
HREF="function.m-completeauthorizations.html"
>m_completeauthorizations</A
>&nbsp;--&nbsp;Number of complete authorizations in queue, returning an array of their identifiers</DT
><DT
><A
HREF="function.m-connect.html"
>m_connect</A
>&nbsp;--&nbsp;Establish the connection to MCVE</DT
><DT
><A
HREF="function.m-connectionerror.html"
>m_connectionerror</A
>&nbsp;--&nbsp;Get a textual representation of why a connection failed</DT
><DT
><A
HREF="function.m-deletetrans.html"
>m_deletetrans</A
>&nbsp;--&nbsp;Delete specified transaction from MCVE_CONN structure</DT
><DT
><A
HREF="function.m-destroyconn.html"
>m_destroyconn</A
>&nbsp;--&nbsp;Destroy the connection and MCVE_CONN structure</DT
><DT
><A
HREF="function.m-destroyengine.html"
>m_destroyengine</A
>&nbsp;--&nbsp;Free memory associated with IP/SSL connectivity</DT
><DT
><A
HREF="function.m-getcell.html"
>m_getcell</A
>&nbsp;--&nbsp;Get a specific cell from a comma delimited response by column name</DT
><DT
><A
HREF="function.m-getcellbynum.html"
>m_getcellbynum</A
>&nbsp;--&nbsp;Get a specific cell from a comma delimited response by column number</DT
><DT
><A
HREF="function.m-getcommadelimited.html"
>m_getcommadelimited</A
>&nbsp;--&nbsp;Get the RAW comma delimited data returned from MCVE</DT
><DT
><A
HREF="function.m-getheader.html"
>m_getheader</A
>&nbsp;--&nbsp;Get the name of the column in a comma-delimited response</DT
><DT
><A
HREF="function.m-initconn.html"
>m_initconn</A
>&nbsp;--&nbsp;Create and initialize an MCVE_CONN structure</DT
><DT
><A
HREF="function.m-initengine.html"
>m_initengine</A
>&nbsp;--&nbsp;Ready the client for IP/SSL Communication</DT
><DT
><A
HREF="function.m-iscommadelimited.html"
>m_iscommadelimited</A
>&nbsp;--&nbsp;Checks to see if response is comma delimited</DT
><DT
><A
HREF="function.m-maxconntimeout.html"
>m_maxconntimeout</A
>&nbsp;--&nbsp;The maximum amount of time the API will attempt a connection to MCVE</DT
><DT
><A
HREF="function.m-monitor.html"
>m_monitor</A
>&nbsp;--&nbsp;Perform communication with MCVE (send/receive data) Non-blocking</DT
><DT
><A
HREF="function.m-numcolumns.html"
>m_numcolumns</A
>&nbsp;--&nbsp;Number of columns returned in a comma delimited response</DT
><DT
><A
HREF="function.m-numrows.html"
>m_numrows</A
>&nbsp;--&nbsp;Number of rows returned in a comma delimited response</DT
><DT
><A
HREF="function.m-parsecommadelimited.html"
>m_parsecommadelimited</A
>&nbsp;--&nbsp;Parse the comma delimited response so m_getcell, etc will work</DT
><DT
><A
HREF="function.m-responsekeys.html"
>m_responsekeys</A
>&nbsp;--&nbsp;Returns array of strings which represents the keys that can be used
 for response parameters on this transaction</DT
><DT
><A
HREF="function.m-responseparam.html"
>m_responseparam</A
>&nbsp;--&nbsp;Get a custom response parameter</DT
><DT
><A
HREF="function.m-returnstatus.html"
>m_returnstatus</A
>&nbsp;--&nbsp;Check to see if the transaction was successful</DT
><DT
><A
HREF="function.m-setblocking.html"
>m_setblocking</A
>&nbsp;--&nbsp;Set blocking/non-blocking mode for connection</DT
><DT
><A
HREF="function.m-setdropfile.html"
>m_setdropfile</A
>&nbsp;--&nbsp;Set the connection method to Drop-File</DT
><DT
><A
HREF="function.m-setip.html"
>m_setip</A
>&nbsp;--&nbsp;Set the connection method to IP</DT
><DT
><A
HREF="function.m-setssl-cafile.html"
>m_setssl_cafile</A
>&nbsp;--&nbsp;Set SSL CA (Certificate Authority) file for verification of server
 certificate</DT
><DT
><A
HREF="function.m-setssl-files.html"
>m_setssl_files</A
>&nbsp;--&nbsp;Set certificate key files and certificates if server requires client certificate
 verification</DT
><DT
><A
HREF="function.m-setssl.html"
>m_setssl</A
>&nbsp;--&nbsp;Set the connection method to SSL</DT
><DT
><A
HREF="function.m-settimeout.html"
>m_settimeout</A
>&nbsp;--&nbsp;Set maximum transaction time (per trans)</DT
><DT
><A
HREF="function.m-sslcert-gen-hash.html"
>m_sslcert_gen_hash</A
>&nbsp;--&nbsp;Generate hash for SSL client certificate verification</DT
><DT
><A
HREF="function.m-transactionssent.html"
>m_transactionssent</A
>&nbsp;--&nbsp;Check to see if outgoing buffer is clear</DT
><DT
><A
HREF="function.m-transinqueue.html"
>m_transinqueue</A
>&nbsp;--&nbsp;Number of transactions in client-queue</DT
><DT
><A
HREF="function.m-transkeyval.html"
>m_transkeyval</A
>&nbsp;--&nbsp;Add key/value pair to a transaction. Replaces deprecated transparam()</DT
><DT
><A
HREF="function.m-transnew.html"
>m_transnew</A
>&nbsp;--&nbsp;Start a new transaction</DT
><DT
><A
HREF="function.m-transsend.html"
>m_transsend</A
>&nbsp;--&nbsp;Finalize and send the transaction</DT
><DT
><A
HREF="function.m-uwait.html"
>m_uwait</A
>&nbsp;--&nbsp;Wait x microsecs</DT
><DT
><A
HREF="function.m-validateidentifier.html"
>m_validateidentifier</A
>&nbsp;--&nbsp;Whether or not to validate the passed identifier on any transaction it is passed to</DT
><DT
><A
HREF="function.m-verifyconnection.html"
>m_verifyconnection</A
>&nbsp;--&nbsp;Set whether or not to PING upon connect to verify connection</DT
><DT
><A
HREF="function.m-verifysslcert.html"
>m_verifysslcert</A
>&nbsp;--&nbsp;Set whether or not to verify the server ssl certificate</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.mdecrypt-generic.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.m-checkstatus.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>mdecrypt_generic</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>m_checkstatus</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>