Ejemplo n.º 1
0
 public IEMVTransactionProcessor GetObject(EMVTransactions emvTransaction)
 {
     if (emvTransaction == EMVTransactions.EMVPadReset)
     {
         return(new EMVPadResetProcessor());
     }
     else if (emvTransaction == EMVTransactions.EMVSale)
     {
         return(new EMVSaleProcessor());
     }
     else if (emvTransaction == EMVTransactions.EMVReturn)
     {
         return(new EMVReturnProcessor());
     }
     else if (emvTransaction == EMVTransactions.EMVParamDownload)
     {
         return(new EMVParamDownloadProcessor());
     }
     else if (emvTransaction == EMVTransactions.ServerVersion)
     {
         return(new ServerVersionProcessor());
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 2
0
        private void btnClear_Click(object sender, EventArgs e)
        {
            emvTransaction = EMVTransactions.Unknown;

            txtRequest.Text  = string.Empty;
            txtResponse.Text = string.Empty;
            lblClock.Text    = "00:00:00";
        }
Ejemplo n.º 3
0
        private void btnEMVReturn_Click(object sender, EventArgs e)
        {
            txtResponse.Text = string.Empty;

            emvTransaction = EMVTransactions.EMVReturn;

            txtRequest.Text = EMVRequest.GetEMVReturnRequest(configData, GetTransData());
        }
Ejemplo n.º 4
0
        public frmDsiEMVX()
        {
            InitializeComponent();
            configData     = new ConfigurationData();
            dsiEMVX        = new DSIEMVXLib.DsiEMVX();
            emvTransaction = EMVTransactions.Unknown;

            lblAmount.Text = AmountGenerator.GenerateAmount(0.01, 10.00);

            lblInvoice.Text = InvoiceGenerator.GenerateInvoice();
        }