public function __construct(array $data) { $this->setRequiredFields(array("security" => array("name" => "Security"), "merchant" => array("name" => "Merchant - Nro Comercio", "xml" => "NROCOMERCIO"), "nro_operacion" => array("name" => "Nro Operación", "xml" => "NROOPERACION"), "monto" => array("name" => "Monto", "xml" => "MONTO"), "email_cliente" => array("name" => "Email Cliente", "xml" => "EMAILCLIENTE"))); $this->setOptionalFields(array("encoding_method" => array("name" => "Encoding Method"))); parent::__construct($data); $this->nro_comercio = $data['merchant']; $this->monto = number_format($data['monto'], 2, ".", ""); }
public function __construct(array $data) { $this->setRequiredFields(array("StatusCode" => array("name" => "StatusCode"), "StatusMessage" => array("name" => "StatusMessage"))); $this->setOptionalFields(array("Payload" => array("name" => "Payload"))); parent::__construct($data); $this->ResponseValid = $this->StatusCode == -1; if (!$this->ResponseValid) { throw new \Decidir\Exception\ResponseException($this->StatusMessage, $this->StatusCode, $this); } }
public function getData() { return parent::getXmlData(); }
public function __construct($productData) { $this->setRequiredFields(array("csitproductcode" => array("name" => "CS - Product - CSITPRODUCTCODE", "xml" => "CSITPRODUCTCODE"), "csitproductdescription" => array("name" => "CS - Product - CSITPRODUCTDESCRIPTION", "xml" => "CSITPRODUCTDESCRIPTION"), "csitproductname" => array("name" => "CS - Product - CSITPRODUCTNAME", "xml" => "CSITPRODUCTNAME"), "csitproductsku" => array("name" => "CS - Product - CSITPRODUCTSKU", "xml" => "CSITPRODUCTSKU"), "csittotalamount" => array("name" => "CS - Product - CSITTOTALAMOUNT", "xml" => "CSITTOTALAMOUNT"), "csitquantity" => array("name" => "CS - Product - CSITQUANTITY", "xml" => "CSITQUANTITY"), "csitunitprice" => array("name" => "CS - Product - CSITUNITPRICE", "xml" => "CSITUNITPRICE"))); parent::__construct($productData); }
public function getData() { $output = parent::getXmlData(); $output .= $this->products_data->getData("product"); return $output; }
public function __construct(array $data) { $this->setRequiredFields(array("idsite" => array("name" => "IdSite"), "idtransactionsit" => array("name" => "IdTransactionSit"))); parent::__construct($data); }
public function __construct(array $data) { $this->setRequiredFields(array("security" => array("name" => "Security"), "merchant" => array("name" => "Merchant - Nro Comercio"), "operation" => array("name" => "Operation"))); $this->setOptionalFields(array("encoding_method" => array("name" => "Encoding Method"))); parent::__construct($data); }
public function __construct(array $data) { $this->setRequiredFields(array("monto" => array("name" => "Monto", "original" => "MONTO"), "estado_descri" => array("name" => "ESTADO_DESCRI", "original" => "ESTADO_DESCRI"), "id_motivo" => array("name" => "IDMOTIVO", "original" => "IDMOTIVO"), "codaut" => array("name" => "CODAUT", "original" => "CODAUT"), "mail" => array("name" => "MAIL", "original" => "MAIL"), "id_site" => array("name" => "IDSITE", "original" => "IDSITE"), "id_estado" => array("name" => "IDESTADO", "original" => "IDESTADO"), "id_mediopago" => array("name" => "IDMEDIOPAGO", "original" => "IDMEDIOPAGO"), "mediopago_descri" => array("name" => "MEDIOPAGO_DESCRI", "original" => "MEDIOPAGO_DESCRI"))); $this->setOptionalFields(array("id_transaction_site" => array("name" => "Id de Transaccion", "original" => "IDTRANSACCIONSITE"), "fecha_original" => array("name" => "Fecha Original", "original" => "FECHA_ORIGINAL"), "cuotas" => array("name" => "CUOTAS", "original" => "CUOTAS"), "nro_ticket" => array("name" => "NROTICKET", "original" => "NROTICKET"), "motivo_adicional" => array("name" => "MOTIVO_ADICIONAL", "original" => "MOTIVO_ADICIONAL"), "titular" => array("name" => "TITULAR", "original" => "TITULAR"), "id_tipo_doc" => array("name" => "IDTIPODOC", "original" => "IDTIPODOC"), "nro_doc" => array("name" => "NRODOC", "original" => "NRODOC"), "tipo_doc" => array("name" => "TIPODOC", "original" => "TIPODOC"), "nro_tarj4" => array("name" => "NROTARJ4", "original" => "NROTARJ4"), "motivo" => array("name" => "MOTIVO", "original" => "MOTIVO"), "valdom" => array("name" => "VALDOM", "original" => "VALDOM"), "sexo_titular" => array("name" => "SEXOTITULAR", "original" => "SEXOTITULAR"), "calle" => array("name" => "CALLE", "original" => "CALLE"), "nro_puerta" => array("name" => "NROPUERTA", "original" => "NROPUERTA"), "paramsitio" => array("name" => "PARAMSITIO", "original" => "PARAMSITIO"), "fechavto_couta1" => array("name" => "FECHAVTOCUOTA1", "original" => "FECHAVTOCUOTA1"))); parent::__construct($data); }
public function __construct(array $data) { $this->setRequiredFields(array("security" => array("name" => "Security"), "merchant" => array("name" => "Merchant - Nro Comercio"), "requestKey" => array("name" => "RequestKey"), "answerKey" => array("name" => "AnswerKey"))); parent::__construct($data); }