I am working with a processing company to handle credit card transactions.
I need to setup a function on the pubic facing website to update information based on transactions that have happened. I'm not messing with CC info or anything security related but rather just the number of people that have paid into a certain fund designation.
The company has an API and I have some knowledge of programming but this is new to me.
Am I getting in over my head to accomplish this?
Here is the API function that I think I need to use.
$params = 'MerchUserName=merchusername';
$params .= '&MerchPassword=merchpassword';
$params .= '&MerchKey=0A1B2C3D-4E5F-6G7H-8I9J-KLMNPQRSTUVW';
$params .= '&Action=DesignationsSearchByGUID';
$params .= '&DesignationGUID=7EB4439E-C986-4381-9087-EC410C9F8017';
/* PHP 5.0.0 requires a libcurl version 7.10.5 or greater. (http://curl.haxx.se/)*/
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
// The SimpleXML extension requires PHP 5
$xml = new SimpleXMLElement($response);
if($xml->Status->ErrorCode < 0)
My problem is that I am wondering if there is something I need to setup to make the connection to the API, then I'm guessing I;ll need to parse the XML to display the results.
Can you point me in the right direction?