Exemplo n.º 1
0
        public override IPayment CreatePayment(decimal amount)
        {
            var payment = _orderFactory.CreateCardPayment();

            payment.CardType               = "Credit card";
            payment.PaymentMethodId        = PaymentMethodId;
            payment.PaymentMethodName      = "GenericCreditCard";
            payment.Amount                 = amount;
            payment.CreditCardNumber       = CreditCardNumber;
            payment.CreditCardSecurityCode = CreditCardSecurityCode;
            payment.ExpirationMonth        = ExpirationMonth;
            payment.ExpirationYear         = ExpirationYear;
            payment.Status                 = PaymentStatus.Pending.ToString();
            payment.CustomerName           = CreditCardName;
            payment.TransactionType        = TransactionType.Authorization.ToString();
            return(payment);
        }