Пример #1
0
 public Response TransactionSetup(Credentials credentials, Application application, Terminal terminal, Transaction transaction, [System.Xml.Serialization.XmlElementAttribute("transactionSetup")] TransactionSetup transactionSetup1, Address address, PaymentAccount paymentAccount, [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] ExtendedParameters[] extendedParameters) {
     object[] results = this.Invoke("TransactionSetup", new object[] {
                 credentials,
                 application,
                 terminal,
                 transaction,
                 transactionSetup1,
                 address,
                 paymentAccount,
                 extendedParameters});
     return ((Response)(results[0]));
 }
Пример #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);
 }
Пример #3
0
 public Response CreditCardReturn(Credentials credentials, Application application, Terminal terminal, Transaction transaction, [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] ExtendedParameters[] extendedParameters) {
     object[] results = this.Invoke("CreditCardReturn", new object[] {
                 credentials,
                 application,
                 terminal,
                 transaction,
                 extendedParameters});
     return ((Response)(results[0]));
 }
Пример #4
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;
        }
Пример #5
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);
 }
Пример #6
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);
 }
Пример #7
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);
 }
Пример #8
0
 /// <remarks/>
 public void BINQueryAsync(Credentials credentials, Application application, Terminal terminal, Card card, ExtendedParameters[] extendedParameters) {
     this.BINQueryAsync(credentials, application, terminal, card, extendedParameters, null);
 }
Пример #9
0
 public Response CheckVerification(Credentials credentials, Application application, Terminal terminal, DemandDepositAccount demandDepositAccount, Transaction transaction, Identification identification, Address address, [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] ExtendedParameters[] extendedParameters) {
     object[] results = this.Invoke("CheckVerification", new object[] {
                 credentials,
                 application,
                 terminal,
                 demandDepositAccount,
                 transaction,
                 identification,
                 address,
                 extendedParameters});
     return ((Response)(results[0]));
 }
Пример #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);
 }
Пример #11
0
 /// <remarks/>
 public void BatchTotalsQueryAsync(Credentials credentials, Application application, Terminal terminal, Batch batch, ExtendedParameters[] extendedParameters) {
     this.BatchTotalsQueryAsync(credentials, application, terminal, batch, extendedParameters, null);
 }
Пример #12
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);
 }
Пример #13
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);
 }
Пример #14
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);
 }
Пример #15
0
 /// <remarks/>
 public void CheckReversalAsync(Credentials credentials, Application application, Terminal terminal, Transaction transaction, ExtendedParameters[] extendedParameters) {
     this.CheckReversalAsync(credentials, application, terminal, transaction, extendedParameters, null);
 }
Пример #16
0
 public Response BINQuery(Credentials credentials, Application application, Terminal terminal, Card card, [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] ExtendedParameters[] extendedParameters) {
     object[] results = this.Invoke("BINQuery", new object[] {
                 credentials,
                 application,
                 terminal,
                 card,
                 extendedParameters});
     return ((Response)(results[0]));
 }
Пример #17
0
 public Response EBTBalanceInquiry(Credentials credentials, Application application, Terminal terminal, Card card, Transaction transaction, EBT ebt, [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] ExtendedParameters[] extendedParameters) {
     object[] results = this.Invoke("EBTBalanceInquiry", new object[] {
                 credentials,
                 application,
                 terminal,
                 card,
                 transaction,
                 ebt,
                 extendedParameters});
     return ((Response)(results[0]));
 }
Пример #18
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);
 }
Пример #19
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);
 }
Пример #20
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);
 }
Пример #21
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);
 }
Пример #22
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);
 }
Пример #23
0
 /// <remarks/>
 public void MagneprintDataDecryptAsync(Credentials credentials, Application application, Terminal terminal, Card card, ExtendedParameters[] extendedParameters) {
     this.MagneprintDataDecryptAsync(credentials, application, terminal, card, extendedParameters, null);
 }
Пример #24
0
 /// <remarks/>
 public void CreditCardReturnAsync(Credentials credentials, Application application, Terminal terminal, Transaction transaction, ExtendedParameters[] extendedParameters) {
     this.CreditCardReturnAsync(credentials, application, terminal, transaction, extendedParameters, null);
 }
Пример #25
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)
            {
            }
        }