private StoredValueTransaction SetStoredValueTxnData() { StoredValueTransaction SVATransaction = new StoredValueTransaction(); SVATransaction.TransactionData = new StoredValueTransactionData(); //Transaction Data SVATransaction.TransactionData.Amount = 14.00M; SVATransaction.TransactionData.CurrencyCode = TypeISOCurrencyCodeA3.USD; SVATransaction.TransactionData.EmployeeId = "122"; SVATransaction.TransactionData.IndustryType = IndustryType.Retail; SVATransaction.TransactionData.TenderCurrencyCode = TypeISOCurrencyCodeA3.USD; SVATransaction.TransactionData.TransactionDateTime = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fffzzz"); //Tender Data SVATransaction.TenderData = new StoredValueTenderData(); SVATransaction.TenderData.CardData = new CardData1(); SVATransaction.TenderData.CardSecurityData = new CardSecurityData1(); SVATransaction.TenderData.CardSecurityData.CVDataProvided = CVDataProvided.Provided; SVATransaction.TenderData.CardSecurityData.CVData = "1111"; if (Convert.ToBoolean(ConfigurationSettings.AppSettings["TxnData_ProcessAsKeyed"])) { SVATransaction.TenderData.CardData.AccountNumber = "5858836401000004"; SVATransaction.TenderData.CardData.Expire = "1012"; SVATransaction.TransactionData.EntryMode = EntryMode.Keyed; } else { SVATransaction.TenderData.CardData.Track2Data = "5858836401000004^ / ^4912101000005320000000532000000"; SVATransaction.TenderData.CardData.AccountNumber = "5858836401000004"; SVATransaction.TransactionData.EntryMode = EntryMode.TrackDataFromMSR; } return SVATransaction; }
public static StoredValueTransaction SetStoredValueTxnData() { StoredValueTransaction SVATransaction = new StoredValueTransaction(); SVATransaction.TransactionData = new StoredValueTransactionData(); //Transaction Data SVATransaction.TransactionData.Amount = Convert.ToDecimal(target.TxtAmount); SVATransaction.TransactionData.CurrencyCode = schemas.ipcommerce.com.Ipc.General.WCF.Contracts.Common.External.Txn.TypeISOCurrencyCodeA3.USD; SVATransaction.TransactionData.EmployeeId = "122"; SVATransaction.TransactionData.IndustryType = schemas.ipcommerce.com.Ipc.General.WCF.Contracts.Common.External.Txn.IndustryType.Retail; SVATransaction.TransactionData.TenderCurrencyCode = schemas.ipcommerce.com.Ipc.General.WCF.Contracts.Common.External.Txn.TypeISOCurrencyCodeA3.USD; SVATransaction.TransactionData.TransactionDateTime = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fffzzz"); //Tender Data SVATransaction.TenderData = new StoredValueTenderData(); SVATransaction.TenderData.CardData = new CardData1(); SVATransaction.TenderData.CardSecurityData = new CardSecurityData1(); SVATransaction.TenderData.CardSecurityData.CVDataProvided = CVDataProvided.Provided; SVATransaction.TenderData.CardSecurityData.CVData = "1111"; if (Convert.ToBoolean(ConfigurationManager.AppSettings["TxnData_ProcessAsKeyed"])) { SVATransaction.TenderData.CardData.AccountNumber = "5858836401000004"; SVATransaction.TenderData.CardData.Expire = "1012"; SVATransaction.TransactionData.EntryMode = schemas.ipcommerce.com.Ipc.General.WCF.Contracts.Common.External.Txn.EntryMode.Keyed; } else { SVATransaction.TenderData.CardData.Track2Data = "5858836401000004^ / ^4912101000005320000000532000000"; SVATransaction.TenderData.CardData.AccountNumber = "5858836401000004"; SVATransaction.TransactionData.EntryMode = schemas.ipcommerce.com.Ipc.General.WCF.Contracts.Common.External.Txn.EntryMode.TrackDataFromMSR; } return SVATransaction; }