Пример #1
0
            public void PagarTarjeta(string concepto, double importe)
            {
                  ReqPagarTarjeta req = new ReqPagarTarjeta();
                  req.fecha = this.FechaAplicacion;
                  req.cuentaOrigen = this._cuenta.NumeroCuenta;
                  req.tarjeta = this.Tarjeta.Tarjeta.numeroTarjeta;
                  req.concepto = concepto;
                  req.importe = importe.FormatoImporte();
                  req.token = this.Token;
                  req.titular = this._tarjeta.Titular;
                  req.tipo = 3.ToString();

                  Services.PagarTarjeta(base.ServiceRequest, ResponsePagarTarjeta, req);
            }
Пример #2
0
        public static void PagarTarjeta(ServiceRequest2 serviceRequest, ServiceRequestEventHandler<DtoPagarTarjeta> asyncCallback, ReqPagarTarjeta requestData)
        {
#if OFFLINE
            serviceRequest.BeginWebRequestOffline<ResPagarTarjeta, DtoPagarTarjeta>(service._servicePagarTarjeta, asyncCallback, json._jsonPagarTarjeta);
#else
            new Thread(() => { serviceRequest.BeginWebRequest<ResPagarTarjeta, DtoPagarTarjeta, ReqPagarTarjeta>(service._servicePagarTarjeta, asyncCallback, requestData); }).Start();
#endif
        }