Example #1
0
 /// <remarks/>
 public void BINQueryAsync(Credentials credentials, Application application, Terminal terminal, Card card, ExtendedParameters[] extendedParameters) {
     this.BINQueryAsync(credentials, application, terminal, card, extendedParameters, null);
 }
Example #2
0
 /// <remarks/>
 public void TransactionSetupAsync(Credentials credentials, Application application, Terminal terminal, Transaction transaction, TransactionSetup transactionSetup1, Address address, PaymentAccount paymentAccount, ExtendedParameters[] extendedParameters) {
     this.TransactionSetupAsync(credentials, application, terminal, transaction, transactionSetup1, address, paymentAccount, extendedParameters, null);
 }
Example #3
0
 /// <remarks/>
 public void TransactionSetupAsync(Credentials credentials, Application application, Terminal terminal, Transaction transaction, TransactionSetup transactionSetup1, Address address, PaymentAccount paymentAccount, ExtendedParameters[] extendedParameters, object userState) {
     if ((this.TransactionSetupOperationCompleted == null)) {
         this.TransactionSetupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTransactionSetupOperationCompleted);
     }
     this.InvokeAsync("TransactionSetup", new object[] {
                 credentials,
                 application,
                 terminal,
                 transaction,
                 transactionSetup1,
                 address,
                 paymentAccount,
                 extendedParameters}, this.TransactionSetupOperationCompleted, userState);
 }
Example #4
0
 /// <remarks/>
 public void CreditCardAVSOnlyAsync(Credentials credentials, Application application, Terminal terminal, Card card, Transaction transaction, Address address, ExtendedParameters[] extendedParameters, object userState) {
     if ((this.CreditCardAVSOnlyOperationCompleted == null)) {
         this.CreditCardAVSOnlyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreditCardAVSOnlyOperationCompleted);
     }
     this.InvokeAsync("CreditCardAVSOnly", new object[] {
                 credentials,
                 application,
                 terminal,
                 card,
                 transaction,
                 address,
                 extendedParameters}, this.CreditCardAVSOnlyOperationCompleted, userState);
 }
Example #5
0
        public static bool fcnEPSRepeatSale(long _lngCTID, long _lngRecordID, decimal _decAmt, string _strEPSPmtAcctID, ref string _strEPSTransIDResult, ref string _strAuthNumber, ref string _strEPSApprovalNumber, ref string _strEPSValidationCode)
        {
            bool blnRes = false;

            //Get TransactionSetupID from EPS
            try
            {
                wsEPSTrans.Express EPSExpress = new wsEPSTrans.Express();

                wsEPSTrans.Credentials EPSCred = new wsEPSTrans.Credentials();
                wsEPSTrans.Application EPSApp = new wsEPSTrans.Application();
                wsEPSTrans.Terminal EPSTerminal = new wsEPSTrans.Terminal();
                wsEPSTrans.Transaction EPSTrans = new wsEPSTrans.Transaction();
                wsEPSTrans.ExtendedParameters[] EPSExtParam = new wsEPSTrans.ExtendedParameters[1];
                wsEPSTrans.ExtendedParameters EPSParam = new global::CTWebMgmt.wsEPSTrans.ExtendedParameters();
                wsEPSTrans.PaymentAccount EPSPmtAcct = new global::CTWebMgmt.wsEPSTrans.PaymentAccount();

                string strEPSAcceptorID = "";
                string strEPSAccountID = "";
                string strEPSAccountToken = "";
                string strEPSTerminalID = "";

                try
                {
                    using (OleDbConnection conDB = new OleDbConnection(clsAppSettings.GetAppSettings().strCTConn))
                    {
                        conDB.Open();

                        string strSQL = "SELECT strEPSAcceptorID, strEPSAccountID, strEPSAccountToken, strEPSTerminalID " +
                                        "FROM tblCampDefaults";

                        using (OleDbCommand cmdDB = new OleDbCommand(strSQL, conDB))
                        {
                            using (OleDbDataReader drDef = cmdDB.ExecuteReader())
                            {
                                if (drDef.Read())
                                {
                                    strEPSAcceptorID = Convert.ToString(drDef["strEPSAcceptorID"]);
                                    strEPSAccountID = Convert.ToString(drDef["strEPSAccountID"]);
                                    strEPSAccountToken = Convert.ToString(drDef["strEPSAccountToken"]);
                                    strEPSTerminalID = Convert.ToString(drDef["strEPSTerminalID"]);
                                }

                                drDef.Close();
                            }
                        }

                        conDB.Close();
                    }
                }
                catch { }

                EPSCred.AcceptorID = strEPSAcceptorID;
                EPSCred.AccountID = strEPSAccountID;
                EPSCred.AccountToken = strEPSAccountToken;

                EPSApp.ApplicationID = "1190";
                EPSApp.ApplicationName = "CampTrak Software";
                EPSApp.ApplicationVersion = "1.0.0";

                EPSTrans.ReferenceNumber = _lngCTID.ToString();

                EPSTerminal.TerminalID = strEPSTerminalID;

                EPSTrans.TransactionAmount = _decAmt.ToString("C").Replace("$", "");

                EPSPmtAcct.PaymentAccountID = _strEPSPmtAcctID;
                EPSParam.Key = "PaymentAccount";
                EPSParam.Value = EPSPmtAcct;
                EPSExtParam[0] = EPSParam;

                wsEPSTrans.Response EPSResponse = EPSExpress.CreditCardSale(EPSCred, EPSApp, EPSTerminal, null, EPSTrans, null, EPSExtParam);

                //evaluate response...
                //set return values
                _strEPSTransIDResult = EPSResponse.Transaction.TransactionID;
                _strAuthNumber = EPSResponse.Transaction.ApprovalNumber;
                _strEPSApprovalNumber = EPSResponse.Transaction.ApprovalNumber;
                _strEPSValidationCode = "";

                if (EPSResponse.Transaction.TransactionStatusCode == "1") blnRes = true;
            }
            catch (Exception ex)
            {
            }

            return blnRes;
        }
Example #6
0
 /// <remarks/>
 public void TransactionSetupExpireAsync(Credentials credentials, Application application, TransactionSetup transactionSetup, ExtendedParameters[] extendedParameters, object userState) {
     if ((this.TransactionSetupExpireOperationCompleted == null)) {
         this.TransactionSetupExpireOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTransactionSetupExpireOperationCompleted);
     }
     this.InvokeAsync("TransactionSetupExpire", new object[] {
                 credentials,
                 application,
                 transactionSetup,
                 extendedParameters}, this.TransactionSetupExpireOperationCompleted, userState);
 }
Example #7
0
 /// <remarks/>
 public void CreditCardBalanceInquiryAsync(Credentials credentials, Application application, Terminal terminal, Card card, Transaction transaction, ExtendedParameters[] extendedParameters) {
     this.CreditCardBalanceInquiryAsync(credentials, application, terminal, card, transaction, extendedParameters, null);
 }
Example #8
0
 /// <remarks/>
 public void CheckReversalAsync(Credentials credentials, Application application, Terminal terminal, Transaction transaction, ExtendedParameters[] extendedParameters) {
     this.CheckReversalAsync(credentials, application, terminal, transaction, extendedParameters, null);
 }
Example #9
0
 /// <remarks/>
 public void EBTReversalAsync(Credentials credentials, Application application, Terminal terminal, Card card, Transaction transaction, EBT ebt, ExtendedParameters[] extendedParameters) {
     this.EBTReversalAsync(credentials, application, terminal, card, transaction, ebt, extendedParameters, null);
 }
Example #10
0
 /// <remarks/>
 public void CheckVerificationAsync(Credentials credentials, Application application, Terminal terminal, DemandDepositAccount demandDepositAccount, Transaction transaction, Identification identification, Address address, ExtendedParameters[] extendedParameters) {
     this.CheckVerificationAsync(credentials, application, terminal, demandDepositAccount, transaction, identification, address, extendedParameters, null);
 }
Example #11
0
 /// <remarks/>
 public void CheckVerificationAsync(Credentials credentials, Application application, Terminal terminal, DemandDepositAccount demandDepositAccount, Transaction transaction, Identification identification, Address address, ExtendedParameters[] extendedParameters, object userState) {
     if ((this.CheckVerificationOperationCompleted == null)) {
         this.CheckVerificationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckVerificationOperationCompleted);
     }
     this.InvokeAsync("CheckVerification", new object[] {
                 credentials,
                 application,
                 terminal,
                 demandDepositAccount,
                 transaction,
                 identification,
                 address,
                 extendedParameters}, this.CheckVerificationOperationCompleted, userState);
 }
Example #12
0
 /// <remarks/>
 public void BatchTotalsQueryAsync(Credentials credentials, Application application, Terminal terminal, Batch batch, ExtendedParameters[] extendedParameters) {
     this.BatchTotalsQueryAsync(credentials, application, terminal, batch, extendedParameters, null);
 }
Example #13
0
 /// <remarks/>
 public void BatchCloseAsync(Credentials credentials, Application application, Terminal terminal, Batch batch, ExtendedParameters[] extendedParameters, object userState) {
     if ((this.BatchCloseOperationCompleted == null)) {
         this.BatchCloseOperationCompleted = new System.Threading.SendOrPostCallback(this.OnBatchCloseOperationCompleted);
     }
     this.InvokeAsync("BatchClose", new object[] {
                 credentials,
                 application,
                 terminal,
                 batch,
                 extendedParameters}, this.BatchCloseOperationCompleted, userState);
 }
Example #14
0
 /// <remarks/>
 public void DebitCardSaleAsync(Credentials credentials, Application application, Terminal terminal, Card card, Transaction transaction, ExtendedParameters[] extendedParameters) {
     this.DebitCardSaleAsync(credentials, application, terminal, card, transaction, extendedParameters, null);
 }
Example #15
0
 /// <remarks/>
 public void BINQueryAsync(Credentials credentials, Application application, Terminal terminal, Card card, ExtendedParameters[] extendedParameters, object userState) {
     if ((this.BINQueryOperationCompleted == null)) {
         this.BINQueryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnBINQueryOperationCompleted);
     }
     this.InvokeAsync("BINQuery", new object[] {
                 credentials,
                 application,
                 terminal,
                 card,
                 extendedParameters}, this.BINQueryOperationCompleted, userState);
 }
Example #16
0
 /// <remarks/>
 public void EBTReversalAsync(Credentials credentials, Application application, Terminal terminal, Card card, Transaction transaction, EBT ebt, ExtendedParameters[] extendedParameters, object userState) {
     if ((this.EBTReversalOperationCompleted == null)) {
         this.EBTReversalOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEBTReversalOperationCompleted);
     }
     this.InvokeAsync("EBTReversal", new object[] {
                 credentials,
                 application,
                 terminal,
                 card,
                 transaction,
                 ebt,
                 extendedParameters}, this.EBTReversalOperationCompleted, userState);
 }
Example #17
0
 /// <remarks/>
 public void TransactionSetupExpireAsync(Credentials credentials, Application application, TransactionSetup transactionSetup, ExtendedParameters[] extendedParameters) {
     this.TransactionSetupExpireAsync(credentials, application, transactionSetup, extendedParameters, null);
 }
Example #18
0
 /// <remarks/>
 public void AccountTokenActivateAsync(Credentials credentials, Application application, ExtendedParameters[] extendedParameters) {
     this.AccountTokenActivateAsync(credentials, application, extendedParameters, null);
 }
Example #19
0
 /// <remarks/>
 public void CreditCardIncrementalAuthorizationAsync(Credentials credentials, Application application, Terminal terminal, Transaction transaction, ExtendedParameters[] extendedParameters, object userState) {
     if ((this.CreditCardIncrementalAuthorizationOperationCompleted == null)) {
         this.CreditCardIncrementalAuthorizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreditCardIncrementalAuthorizationOperationCompleted);
     }
     this.InvokeAsync("CreditCardIncrementalAuthorization", new object[] {
                 credentials,
                 application,
                 terminal,
                 transaction,
                 extendedParameters}, this.CreditCardIncrementalAuthorizationOperationCompleted, userState);
 }
Example #20
0
 /// <remarks/>
 public void AccountTokenActivateAsync(Credentials credentials, Application application, ExtendedParameters[] extendedParameters, object userState) {
     if ((this.AccountTokenActivateOperationCompleted == null)) {
         this.AccountTokenActivateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAccountTokenActivateOperationCompleted);
     }
     this.InvokeAsync("AccountTokenActivate", new object[] {
                 credentials,
                 application,
                 extendedParameters}, this.AccountTokenActivateOperationCompleted, userState);
 }
Example #21
0
 /// <remarks/>
 public void CreditCardAVSOnlyAsync(Credentials credentials, Application application, Terminal terminal, Card card, Transaction transaction, Address address, ExtendedParameters[] extendedParameters) {
     this.CreditCardAVSOnlyAsync(credentials, application, terminal, card, transaction, address, extendedParameters, null);
 }
Example #22
0
 /// <remarks/>
 public void MagneprintDataDecryptAsync(Credentials credentials, Application application, Terminal terminal, Card card, ExtendedParameters[] extendedParameters) {
     this.MagneprintDataDecryptAsync(credentials, application, terminal, card, extendedParameters, null);
 }
Example #23
0
 /// <remarks/>
 public void CreditCardReturnAsync(Credentials credentials, Application application, Terminal terminal, Transaction transaction, ExtendedParameters[] extendedParameters) {
     this.CreditCardReturnAsync(credentials, application, terminal, transaction, extendedParameters, null);
 }
Example #24
0
        public static void subProcessRefundEPSCC(decimal _decAmt, long _lngCampTrakID, string _strOriginalEPSTransID)
        {
            //Get TransactionSetupID from EPS
            try
            {
                wsEPSTrans.Express EPSExpress = new wsEPSTrans.Express();

                wsEPSTrans.Credentials EPSCred = new wsEPSTrans.Credentials();
                wsEPSTrans.Application EPSApp = new wsEPSTrans.Application();
                wsEPSTrans.Terminal EPSTerminal = new wsEPSTrans.Terminal();
                wsEPSTrans.Transaction EPSTrans = new wsEPSTrans.Transaction();
                wsEPSTrans.ExtendedParameters[] EPSExtParam = new wsEPSTrans.ExtendedParameters[0];

                string strEPSAcceptorID = "";
                string strEPSAccountID = "";
                string strEPSAccountToken = "";
                string strEPSTerminalID = "";

                try
                {
                    using (OleDbConnection conDB = new OleDbConnection(clsAppSettings.GetAppSettings().strCTConn))
                    {
                        conDB.Open();

                        string strSQL = "SELECT strEPSAcceptorID, strEPSAccountID, strEPSAccountToken, strEPSTerminalID " +
                                        "FROM tblCampDefaults";

                        using (OleDbCommand cmdDB = new OleDbCommand(strSQL, conDB))
                        {
                            using (OleDbDataReader drDef = cmdDB.ExecuteReader())
                            {
                                if (drDef.Read())
                                {
                                    strEPSAcceptorID = Convert.ToString(drDef["strEPSAcceptorID"]);
                                    strEPSAccountID = Convert.ToString(drDef["strEPSAccountID"]);
                                    strEPSAccountToken = Convert.ToString(drDef["strEPSAccountToken"]);
                                    strEPSTerminalID = Convert.ToString(drDef["strEPSTerminalID"]);
                                }

                                drDef.Close();
                            }
                        }

                        conDB.Close();
                    }
                }
                catch { }

                EPSCred.AcceptorID = strEPSAcceptorID;
                EPSCred.AccountID = strEPSAccountID;
                EPSCred.AccountToken = strEPSAccountToken;

                EPSApp.ApplicationID = "1190";
                EPSApp.ApplicationName = "CampTrak Software";
                EPSApp.ApplicationVersion = "1.0.0";

                EPSTrans.ReferenceNumber = _lngCampTrakID.ToString();

                EPSTerminal.TerminalID = strEPSTerminalID;

                EPSTrans.TransactionAmount = _decAmt.ToString("C").Replace("$", "");
                EPSTrans.TransactionID = _strOriginalEPSTransID;

                wsEPSTrans.Response EPSResponse = EPSExpress.CreditCardReturn(EPSCred, EPSApp, EPSTerminal, EPSTrans, EPSExtParam);

                System.Windows.Forms.MessageBox.Show("Response: " + EPSResponse.ExpressResponseMessage);
            }
            catch (Exception ex)
            {
            }
        }