public override IPayment CreatePayment(IOrderGroup orderGroup, decimal amount)
        {
            var payment = _orderGroupFactory.CreateCardPayment(orderGroup);

            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);
        }
        public override IPayment CreatePayment(decimal amount,
                                               IOrderGroup orderGroup)
        {
            var payment = _orderGroupFactory.CreateCardPayment(orderGroup);

            payment.PaymentMethodId               = PaymentMethodId;
            payment.PaymentMethodName             = SystemKeyword;
            payment.Amount                        = amount;
            payment.CreditCardNumber              = Token;
            payment.Status                        = PaymentStatus.Pending.ToString();
            payment.TransactionType               = TransactionType.Authorization.ToString();
            payment.ExpirationMonth               = Month;
            payment.ExpirationYear                = Year;
            payment.CardType                      = Type;
            payment.CustomerName                  = CustomerName;
            payment.Properties["stripe_LastFour"] = LastFour;
            return(payment);
        }
Пример #3
0
 public ICreditCardPayment CreateCardPayment(IOrderGroup orderGroup)
 {
     return(_orderGroupFactory.CreateCardPayment(orderGroup));
 }