Beispiel #1
0
        public static string sampleCreditForce()
        {
            request.Credit.Force force = SampleRequests.sampleCreditForce();
            string response            = force.send();

            return(response);
        }
Beispiel #2
0
        public static request.Credit.Force sampleCreditForce()
        {
            request.Credit.Force forceRequest = new request.Credit.Force();

            Credentials credentials = new Credentials();

            credentials.AcceptorID   = "1147003";
            forceRequest.Credentials = credentials;

            Reports reports = new Reports();

            reports.ReportGroup  = "1243";
            forceRequest.Reports = reports;

            Transaction transaction = new Transaction();

            transaction.ReferenceNumber   = "1";
            transaction.TransactionAmount = "100.10";
            transaction.OrderSource       = transaction.OrderSourceDict["ECOMMERCE"];
            forceRequest.Transaction      = transaction;

            Card card = new Card();

            card.CardNumber      = "4457010000000009";
            card.ExpirationMonth = "01";
            card.ExpirationYear  = "16";
            card.CVV             = "349";
            card.Type            = card.TypeDict["VI"];
            forceRequest.Card    = card;

            Application application = new Application();

            application.ApplicationID = "1234";
            forceRequest.Application  = application;

            return(forceRequest);
        }