Struct PaymentTransactionProviderInfo
- Namespace
- Dynamicweb.Ecommerce.Orders.PaymentTransactions
- Assembly
- Dynamicweb.Ecommerce.dll
Describes information about a IPaymentTransactionProvider.
public readonly record struct PaymentTransactionProviderInfo : IEquatable<PaymentTransactionProviderInfo>
- Implements
- Inherited Members
Constructors
PaymentTransactionProviderInfo(IPaymentTransactionProvider, string, bool)
Initializes a new instance of the PaymentTransactionProviderInfo class.
public PaymentTransactionProviderInfo(IPaymentTransactionProvider Provider, string PaymentId, bool IsPaymentActive)
Parameters
ProviderIPaymentTransactionProviderPaymentIdstringIsPaymentActivebool
Exceptions
- ArgumentNullException
If
Providerisnull.- ArgumentException
If
PaymentIdisnullor empty.
Properties
IsPaymentActive
Indicates whether the underlying Payment is active or not.
public bool IsPaymentActive { get; }
Property Value
PaymentId
The ID of the related Payment used
public string PaymentId { get; }
Property Value
Provider
The actual instance implementing IPaymentTransactionProvider
public IPaymentTransactionProvider Provider { get; }