static function saleCC3($params) { $PayEx = new SoapClient(self::getConfig('PxConfinedWSDL'), array("trace" => 1, "exceptions" => 0)); $hash = self::createHash(trim(implode("", $params))); //append the hash to the parameters $params['hash'] = $hash; try { //defining which initialize version to run, this one is 6. $respons = $PayEx->SaleCC3($params); /* NB: SHOULD BE EDITED TO NOT SHOW THE CUSTOMER THIS MESSAGE, BUT SHOW A GENERIC ERROR MESSAGE FOR THE USER, BUT YOU SHOULD BE INFORMED OF THE ERROR. "*/ } catch (SoapFault $error) { echo "Error: {$error->faultstring}"; } return $respons->{'SaleCC3Result'}; }