olaf
Mon 8 October 2007, 12:52 pm GMT +0200
Just got a checkout page ready to post data to the payment channel (iDEAL).
first I send the data within an array to the target server like:
$postData['orderid'] = $_POST['order_id'];
$postData['amount'] = $_POST['amount'];
$ch = curl_init("https://i-kassa.rabobank.nl/rik/test/orderstandard.asp");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
?>
but the target file didn't got any information, I need to populate the values in a querystring like:
$ch = curl_init("https://i-kassa.rabobank.nl/rik/test/orderstandard.asp");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "orderid=1235698&amount=500");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
?>
is this strange? look to me that a windows server accepting data different, while the first method works great in a lot of (linux ) applications
first I send the data within an array to the target server like:
$postData['orderid'] = $_POST['order_id'];
$postData['amount'] = $_POST['amount'];
$ch = curl_init("https://i-kassa.rabobank.nl/rik/test/orderstandard.asp");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
?>
but the target file didn't got any information, I need to populate the values in a querystring like:
$ch = curl_init("https://i-kassa.rabobank.nl/rik/test/orderstandard.asp");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "orderid=1235698&amount=500");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
?>
is this strange? look to me that a windows server accepting data different, while the first method works great in a lot of (linux ) applications