Re: automatic credit card processing
| From: | Dominic | Date: | Mon, 22 Jul 2002 06:30:23 +0000 |
| Subject: | Re: automatic credit card processing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108827@lists.php.net to get a copy of this message | ||
great! it works! thank you very much!
this is the code which does exactly what I wanted:
$ch = curl_init ();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "RESP_FORMAT=1");
$result= curl_exec ($ch);
curl_close ($ch);
cheerio
Martin Towell wrote:
either use curl, and set to option to return the results to you to on or use ob_start(), ob_get_contents(), etc -----Original Message----- From: Dominic [mailto:dbrander@snowflake.ch] Sent: Monday, July 22, 2002 4:11 PM To: php-general@lists.php.net Subject: [PHP] automatic credit card processing Hi all I try to automatically process cc payment. I use online clearing via a third party --> so what I have to do: 1. SSL-TCP/IP connection to this third party-server 2. perform basic http authentication 3. send authorization request parameters to the software (via POST or GET) 4. receive + parse authorization response 1-3 is not a real problem, but how can I receive the response, before it is printed out to the browser/screen? I know I should get the response string into a variable so the whole procedure is "silent", but how? thanks a lot for every little help! cheers dominic-- dominic brander ________________________________________________________________________ dominic brander - snowflake productions gmbh - http://www.snowflake.ch tel. 01 451 75 71 - fax. 01 451 63 80 - mobile 076 543 17 94