private GatewayRequest CreateGatewayRequest(AuthorizeNetConfig settings, PaymentProcessingContext paymentRequest)
        {
            var request = new CardPresentAuthorizeAndCaptureRequest(
                paymentRequest.Amount,
                paymentRequest.Parameters[AuthorizeNetConstants.CreditCardNumber],
                paymentRequest.Parameters[AuthorizeNetConstants.CreditCardExpireMonth],
                paymentRequest.Parameters[AuthorizeNetConstants.CreditCardExpireYear]
                );

            request.AddCardCode(paymentRequest.Parameters[AuthorizeNetConstants.CreditCardCvv2]);

            return(request);
        }
        private GatewayRequest CreateGatewayRequest(AuthorizeNetConfig settings, ProcessPaymentRequest paymentRequest)
        {
            var request = new CardPresentAuthorizeAndCaptureRequest(
                    paymentRequest.Amount,
                    paymentRequest.Parameters[AuthorizeNetConstants.CreditCardNumber],
                    paymentRequest.Parameters[AuthorizeNetConstants.CreditCardExpireMonth],
                    paymentRequest.Parameters[AuthorizeNetConstants.CreditCardExpireYear]
            );

            request.AddCardCode(paymentRequest.Parameters[AuthorizeNetConstants.CreditCardCvv2]);

            return request;
        }