$input['shipCity'] = 'Jamaica'; // the City to Ship to $input['shipRegion'] = 'NY'; // the Region to Ship to $input['shipPostal'] = '11434'; // the Postal Code to Ship to $input['shipCountry'] = 'US'; // the country to Ship to11 $input['txnID'] = '1234'; // Transaction ID $input['accept_language'] = $_SERVER['HTTP_ACCEPT_LANGUAGE']; $input['user_agent'] = $_SERVER['HTTP_USER_AGENT']; /** * If you want to enable Secure HTTPS, have Curl and OpenSSL * installed, change the next line to true. */ // $ccfs->isSecure = false; // Set the timeout to be five seconds. $ccfs->timeout = 10; // Convert the output to UTF-8 (it is ISO 8859-1 by default) $ccfs->useUtf8(true); // Uncomment to turn on debugging. // $ccfs->debug = true; // Add the input array to the object. $ccfs->input($input); // Query the server. $ccfs->query(); // Get the result from the server. $output = $ccfs->output(); // Finally we print out the result. print_r($output);