using Nop.Core.Domain.Payments; namespace Nop.Services.Payments; /// /// Process payment result /// public partial class ProcessPaymentResult { public ProcessPaymentResult() { Errors = new List(); } /// /// Gets a value indicating whether request has been completed successfully /// public bool Success => !Errors.Any(); /// /// Add error /// /// Error public void AddError(string error) { Errors.Add(error); } /// /// Errors /// public IList Errors { get; set; } /// /// Gets or sets an AVS result /// public string AvsResult { get; set; } /// /// Gets or sets an CVV2 result /// public string Cvv2Result { get; set; } /// /// Gets or sets the authorization transaction identifier /// public string AuthorizationTransactionId { get; set; } /// /// Gets or sets the authorization transaction code /// public string AuthorizationTransactionCode { get; set; } /// /// Gets or sets the authorization transaction result /// public string AuthorizationTransactionResult { get; set; } /// /// Gets or sets the capture transaction identifier /// public string CaptureTransactionId { get; set; } /// /// Gets or sets the capture transaction result /// public string CaptureTransactionResult { get; set; } /// /// Gets or sets the subscription transaction identifier /// public string SubscriptionTransactionId { get; set; } /// /// Gets or sets a value indicating whether storing of credit card number, CVV2 is allowed /// public bool AllowStoringCreditCardNumber { get; set; } /// /// Gets or sets a value indicating that the recurring payment failed /// public bool RecurringPaymentFailed { get; set; } /// /// Gets or sets a payment status after processing /// public PaymentStatus NewPaymentStatus { get; set; } = PaymentStatus.Pending; }