Hi, many thanks for your reply.
Ok, I agree - maybe it was a bit broad question. Maybe being a bit more specific would help! I need to learn how to do this myself and want to learn - I just need to be edged in the right direction. I implemented other payment options on the website (eventually) but this one has REALLY got me stuck. Been working on it for 2 months now so you can imagine my fustration. I just dont understand what I am doing wrong. Ive gone through tons of different RPC addons, and other mods from PEAR that people have recommended. But I think im going in the complete wrong direction.
Basically, in a nutshell. What needs to be done. Im going to have a xml document - eg :
<?xml version="1.0" ?> <Safe>Test</Safe> which i need to send to the payment gateway server somehow.
Now i have been using curl
function DoTransaction() {
$url = PGXML_SERVICE;
$data = $this->XMLAuthRequest();
if ($ch = curl_init()) {
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
$result = curl_exec ($ch);[/quote]
but this is clearly incorrect. I done tons of research and cant seem to find ANYTHING that applies. They say PARSE the information to the server, not post - but the only parse I can find is the one's that "extract" the information out of the variables
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
Can anyone point me in the right direction?? Thanks again guys!!! 🙂🙂