Help with sending & receiving xml to Buckaroo payment gateway

Posted on 2008-11-17
Last Modified: 2012-05-05
Hi, I need some help with sending and receiving xml data to Buckroo payment gateway.
Basically I need to send over some transaction data to Buckaroo for them to process. After sending the xml data to their servers, I'm suppose to receive a response back immediately, which I did not get.

However I checked with them and confirmed that they received the transaction successfully. But I still did not get any response back. They tested it on their servers and said that everything was fine and they did get a response after sending. Te thing is their using asp to test it out and I'm out of luck in getting the test script that they used as I'm doing it in php.

The sample code is below. II'm suppose to receive a response back. The ResponseURL in the xml data is to receive back status of transaction after they run a batch job later on. So it has nothing to do with the immediate response that I'm suppose to get.

could someone help me. I'm at my wits end here.
$xml =

	'<?xml version="1.0"?>

	<PayMessage Channel="batch" VersionID="1.0">

	<Control Language="EN" Test="TRUE">















	<Amount Currency="EUR">4800</Amount>

	<Description>Test monthly recurring payment</Description>



	</PayMessage >';

	$url ='';

	$port = 443;



	$ch = curl_init();


	$headers = array(

	"Content-Type: text/xml; charset=utf-8",



	curl_setopt($ch, CURLOPT_URL, $url);



	curl_setopt($ch, CURLOPT_HEADER, FALSE);

	curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);


	curl_setopt($ch, CURLOPT_POST, TRUE);

	curl_setopt($ch, CURLOPT_TIMEOUT, 4);

	curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);




Open in new window

Question by:m_ismadi
    LVL 3

    Accepted Solution

    You have to capture the result, which is returned by curl_exec();

    So $sResponse = curl_exec($ch);
    echo $sResponse;

    That'll work..

    Author Comment

    Thanks wassa_r, the site is not helping at all. Next step is to read the xml and turn them into variables to store in db

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to count occurrences of each item in an array.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now