Try our conversational search powered by Generative AI!
AI OnAI Off
Oct 04, 2017
Oct 19, 2018
Core
Closed, Fixed and tested
When adding a payment to a SerializableCart, after saving and loading, the payment will be SerializablePayment, and all properties are lost.
var payment = orderGroup.CreateCardPayment(_orderGroupFactory); payment.CardType = CardType; payment.PaymentMethodId = PaymentMethodId; payment.PaymentMethodName = SystemKeyword; 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.Sale.ToString(); cart.AddPayment(payment, _orderGroupFactory); _orderRepository.Save(cart);