Example #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.PagoLayout);

            var handler    = new PagosHandler();
            var encabezado = handler.GetEncabezado();
            var detalles   = handler.GetDetalles();

            dialog = new AlertDialog.Builder(this);
            dialog.SetPositiveButton("Aceptar", delegate
            {
            });
            dialog.SetCancelable(false);

            progressDialog = new ProgressDialog(this);
            progressDialog.SetMessage("Procesando operaciĆ³n");

            suiteController  = new SuiteController(Com.Mitec.Suitemcommerce.Utilities.Environment.Qa, this, this);
            beanTokenization = new BeanTokenization
            {
                Branch        = "000025",
                Company       = "Z703",
                Country       = "MEX",
                User          = "******",
                Password      = "******",
                Merchant      = "158198",
                Currency      = Currency.Mxn,
                OperationType = "6",
                Reference     = "Referencia dada por el usuario",
                Amount        = "100.00",
                Token         = "158128"
            };
            bean3DS = new Bean3DS
            {
                Branch    = "000025",
                Company   = "Z703",
                Country   = "MX",
                User      = "******",
                Password  = "******",
                Merchant  = "158198",
                Currency  = Currency.Mxn,
                Reference = "Referencia dada por el usuario",
                AuthKey   = "516883685552545048505454"
            };
            suiteController.Authenticate(beanTokenization, bean3DS);
            suiteController.SndPayWithToken(beanTokenization, bean3DS);
        }
Example #2
0
        private void MostrarVistaTarjeta(VentaDetalleTableViewController VistaPagos, string total)
        {
            suiteController = new SuiteController(SuitemCommerce.Environment.Qa, VistaPagos, this);

            if (total == "")
            {
                total = "100";
            }

            beanTokenization = new BeanTokenization
            {
                Branch        = "000025",
                Company       = "Z703",
                Country       = "MEX",
                User          = "******",
                Password      = "******",
                Merchant      = "158128",
                Currency      = Currency.Mxn,
                OperationType = "6",
                Reference     = "",
                Amount        = total,
            };

            bean3DS = new Bean3DS
            {
                Branch    = "000025",
                Company   = "Z703",
                Country   = "MEX",
                User      = "******",
                Password  = "******",
                Merchant  = "158198",
                Currency  = Currency.Mxn,
                Reference = "",
                AuthKey   = "516883905548514953564957"
            };
            suiteController.AuthenticateWithBeanTokenization(beanTokenization, bean3DS);
            suiteController.SndPayWithTokenWithBeanTokenization(beanTokenization, bean3DS);
        }
Example #3
0
 public Authenticate(SuiteController suiteController, BeanTokenization beanTokenization, Bean3DS bean3DS)
 {
     this.suiteController  = suiteController;
     this.beanTokenization = beanTokenization;
     this.bean3DS          = bean3DS;
 }