Re: presentation
| From: | Pablo A. Godel | Date: | Sun, 27 Jan 2002 00:50:49 +0000 |
| Subject: | Re: presentation | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4208@lists.php.net to get a copy of this message | ||
I forgot to show a basic example on how to use it. It would be like this:
<?php
$cc_data = array(
'x_Zip' => '',
'x_Amount' => '',
'x_Card_Num' => '',
'x_Exp_Date' => '',
'x_City' => '',
'x_Invoice_Num' => '',
'x_Description' => ''',
'x_Cust_ID' => '',
'x_Address' => '',
'x_State' => '',
'x_Country' => 'US',
'x_Last_Name' => '',
'x_Phone' => '',
'x_Email' => ''
);
$cc_auth = new CC_Session($cc_data, CC_AUTHORIZENET_ACCOUNT, 0);
$cc_auth->method = 'curl_functions';
if ($cc_auth->connect()) {
// success
// $cc_auth->authcode // authorization code
} else {
// error !
// $cc_auth->error_message // error message returned by system
}
?>
----- Original Message -----
From: "Pablo A. Godel" <pablo@godel.com.ar>
To: <pear-dev@lists.php.net>
Sent: Saturday, January 26, 2002 6:41 PM
Subject: Re: [PEAR-DEV] presentation
> You can take a look at
>
> http://www.godel.com.ar/software.html
>
>
> The code is barely documented right now, and is not prepared to ship as a
> package for massive usage but works perfect and I don't have any problem
on
> do any changes to meet the pear requirements...
>
> Pablo Godel