Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

CapturePaymentResult.cs

using Nop.Core.Domain.Payments;

namespace Nop.Services.Payments;

/// 
/// Capture payment result
/// 
public partial class CapturePaymentResult
{
    public CapturePaymentResult()
    {
        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 the capture transaction identifier
    /// 
    public string CaptureTransactionId { get; set; }

    /// 
    /// Gets or sets the capture transaction result
    /// 
    public string CaptureTransactionResult { get; set; }

    /// 
    /// Gets or sets a payment status after processing
    /// 
    public PaymentStatus NewPaymentStatus { get; set; } = PaymentStatus.Pending;
}