private AuthorizeNetResult ProcessAuth(double amount)
        {
            var creditCard = new CreditCard("4111 1111 1111 1111", "John Q Customer", 11, 09);
            var authDotNet = new AuthorizeNetProcessor(CredentialFirst, CredentialSecond);

            return authDotNet.Authorize(amount, creditCard);
        }
        private AuthorizeNetResult CancelRecurringBilling(Subscription subscription)
        {
            var authDotNet = new AuthorizeNetProcessor(CredentialFirst, CredentialSecond);

            var result = authDotNet.CancelRecurringBilling(subscription);

            return result;
        }
        private AuthorizeNetResult CreateRecurringBilling(Subscription subscription, CreditCard card)
        {
            var authDotNet = new AuthorizeNetProcessor(CredentialFirst, CredentialSecond);
            var billTo = new Address {FirstName = "John", LastName = "Customer"};

            authDotNet.SetBillingAddress(billTo);

            var result = authDotNet.CreateRecurringBilling(subscription, card);
            return result;
        }
 private AuthorizeNetResult ProcessVoid(string transactionId)
 {
     var authDotNet = new AuthorizeNetProcessor(CredentialFirst, CredentialSecond);
     return authDotNet.Void(transactionId);
 }
 private AuthorizeNetResult ProcessCredit(double amount, string transactionId)
 {
     var creditCard = new CreditCard("4111 1111 1111 1111", "John Q Customer", 09, 09);
     var authDotNet = new AuthorizeNetProcessor(CredentialFirst, CredentialSecond);
     return authDotNet.Credit(amount, creditCard, transactionId);
 }