class getTransactionInformation { public $request; //getTransactionInformationType; }
class getTransactionInformationType { public $EntityCode; //string; public $TicketId; //string; }
class getTransactionInformationResponse { public $getTransactionInformationResult; //getTransactionInformationResponseType; }
class getTransactionInformationResponseType { public $EntityCode; //string; public $TicketId; //string; public $TrazabilityCode; //string; public $TranState; //string; public $ReturnCode; //string; public $TransValue; //decimal; public $TransVatValue; //decimal; public $PayCurrency; //string; public $CurrencyRate; //decimal; public $BankProcessDate; //date; public $BankName; //string; public $PaymentSystem; //string; public $ReferenceArray; //string; public $RetriesTicketId; //retriesTicketIdType; }
class retriesTicketIdType { public $TicketId; //string; public $TranState; //string; }
class createTransactionPayment { public $request; //createTransactionType; }
class createTransactionType { public $EntityCode; //string; public $SrvCode; //string; public $TransValue; //decimal; public $TransVatValue; //decimal; public $SrvCurrency; //string; public $URLResponse; //string; public $URLRedirect; //string; public $Sign; //string; public $SignFields; //string; public $ReferenceArray; //string; }
class createTransactionPaymentResponse { public $createTransactionPaymentResult; //createTransactionResponseType; }
class createTransactionResponseType { public $ReturnCode; //string; public $TicketId; //string; public $eCollectUrl; //string; }
/** * The soap client proxy class */ class PruebasWsdl { public $soapClient;
private static $classmap = array(
'getTransactionInformation'=>'getTransactionInformation',
'getTransactionInformationType'=>'getTransactionInformationType',
'getTransactionInformationResponse'=>'getTransactionInformationResponse',
'getTransactionInformationResponseType'=>'getTransactionInformationResponseType',
'retriesTicketIdType'=>'retriesTicketIdType',
'createTransactionPayment'=>'createTransactionPayment',
'createTransactionType'=>'createTransactionType',
'createTransactionPaymentResponse'=>'createTransactionPaymentResponse',
'createTransactionResponseType'=>'createTransactionResponseType',
);
function __construct($url=‘http://zeus.mipuntodepago.com/d_express/webservice/eCollectWebservicesv2.asmx?wsdl’)
{
$this->soapClient = new SoapClient($url,array("classmap"=>self::$classmap,"trace" => true,"exceptions" => true));
}
function getTransactionInformation($getTransactionInformation)
{
$getTransactionInformationResponse = $this->soapClient->getTransactionInformation($getTransactionInformation);
return $getTransactionInformationResponse;
}
function createTransactionPayment($createTransactionPayment)
{
$createTransactionPaymentResponse = $this->soapClient->createTransactionPayment($createTransactionPayment);
return $createTransactionPaymentResponse;
}
}