cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Curl and Authorize.net

From: Erik Stieringer <erik_at_grossmontdesigns.com>
Date: Mon, 05 May 2003 23:37:29 -0700

Thanks everyone for your quick response.

While I havenšt solved all of my problems, I have made some great inroads.

I will continue working on it and inform you of my progress.

Thanks everyone for your suggestions.

Erik

on 5/5/03 1:32 PM, Patrick Russell at psrman_at_snpent.com wrote:

> I am integrating into the Authorizenet gateway, and I had to use this option
>
> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
>
> Hope it helps
>
> Patrick
>> ----- Original Message -----
>> From: Erik Stieringer <mailto:erik_at_grossmontdesigns.com>
>> To: curl-and-php_at_lists.sourceforge.net
>> Sent: Monday, May 05, 2003 10:47 AM
>> Subject: Curl and Authorize.net
>>
>> Dear Members,
>>
>> I have been trying to get my PHP script to communicate with Authorize.net.
>> It does not appear to send any data, as I do not get an emailed receipt back.
>>
>> I have used both of these forms of code in my PHP scripts:
>>
>> exec("$curl -d \"$data\" $authnet_url", $return_string);
>>
>> (where $curl = path to curl, $data = information to post, & $authnet_url =
>> URL to post to)
>>
>> & I have used:
>>
>> $ch=curl_init();
>> curl_setopt($ch, CURLOPT_URL,
>> "https://secure.authorize.net/gateway/transact.dll:443");
>> curl_setopt($ch, CURLOPT_POST, 1);
>> curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
>> curl_setopt($ch, CURLOPT_USERAGENT, $agent);
>> curl_setopt($ch, CURLOPT_REFERER, $ref);
>> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
>>
>> Neither has worked.
>>
>> ---
>>
>> This information is from phpinfo()
>>
>> PHP Version 4.3.0
>>
>> CURL support enabled
>> CURL Information libcurl/7.10.1 OpenSSL/0.9.6e ipv6 zlib/1.1.3
>>
>> ---
>>
>> The only thing I can figure is that ipv6 does not work with PHP. (I have
>> read that somewhere.) If that is the general consensus of the members here,
>> I will recompile cURL without ipv6. Just want to know what others think
>> before I mess around with the server any more than I have to.
>>
>> Only other interesting note: When I enter “curl-config —version” at the
>> command line, I actually get back “libcurl 7.7.2”, not the 7.10.1 as shown in
>> the phpinfo. I understand that for PHP v. 4.3.0, I do need cURL v. 7.9.8 or
>> better. Could there be some problem with this?
>>
>> Thanks in advance,
>>
>> Erik Stieringer
>>
>

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-05-06