Class PaymentTransaction
- Namespace
- Dynamicweb.Ecommerce.Orders.PaymentTransactions
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a transaction (payment).
public sealed class PaymentTransaction
- Inheritance
-
PaymentTransaction
- Inherited Members
- Extension Methods
Constructors
PaymentTransaction(PaymentTransactionKey, string)
Initializes a new instance of the PaymentTransaction class.
public PaymentTransaction(PaymentTransactionKey identifier, string currencyCode)
Parameters
identifierPaymentTransactionKeycurrencyCodestring
Exceptions
- ArgumentNullException
If
identifierisnull.- ArgumentException
If
currencyCodeisnullor empty.
Properties
Acquirer
Gets the acquirer.
public string? Acquirer { get; init; }
Property Value
Examples
nets, clearhaus, etc.
AuthorizedAmount
Gets the amount that was authorized.
public double AuthorizedAmount { get; init; }
Property Value
CapturedAmount
Gets the amount that was captured.
public double CapturedAmount { get; init; }
Property Value
CreatedDate
Gets the date when the transaction was created.
public DateTime CreatedDate { get; init; }
Property Value
CurrencyCode
Gets the currency code. The standard used is ISO 3166-1 alpha-3.
public string CurrencyCode { get; }
Property Value
Examples
EUR, DKK, etc.
CustomerEmail
The email address of the customer.
public string? CustomerEmail { get; init; }
Property Value
Events
Gets the events related to the payment transaction.
public IReadOnlyCollection<PaymentTransactionEvent>? Events { get; init; }
Property Value
Identifier
Gets the payment transaction identifier.
public PaymentTransactionKey Identifier { get; }
Property Value
Merchant
Gets the merchant ID.
public string? Merchant { get; init; }
Property Value
MetaData
Gets the metadata for the payment transaction.
public PaymentTransactionMetaData? MetaData { get; init; }
Property Value
OrderId
Gets the order ID.
public string? OrderId { get; init; }
Property Value
State
Gets the state of the payment transaction.
public PaymentTransactionState State { get; init; }