Class IPaymentExtensions
Extension methods for IPayment.
Inheritance
System.Object
IPaymentExtensions
Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 14.26.0Syntax
public static class IPaymentExtensions : Object
Methods
GetAllRelatedPayments(IPayment)
Gets all related payments of the payment, which have the same transaction ID, in the order it belongs to.
Declaration
public static IEnumerable<IPayment> GetAllRelatedPayments(this IPayment payment)
Parameters
Type | Name | Description |
---|---|---|
IPayment | payment | The payment. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IPayment> | All related payments. |
GetPaymentTransactionType(IPayment)
Gets the type of the payment transaction.
Declaration
public static TransactionType GetPaymentTransactionType(this IPayment payment)
Parameters
Type | Name | Description |
---|---|---|
IPayment | payment | The payment. |
Returns
Type | Description |
---|---|
TransactionType | Transaction type of the payment. |
HasTransactionType(IPayment, TransactionType)
Checks if the payment has a given transaction type.
Declaration
public static bool HasTransactionType(this IPayment payment, TransactionType transactionType)
Parameters
Type | Name | Description |
---|---|---|
IPayment | payment | The payment. |
TransactionType | transactionType | The transaction type. |
Returns
Type | Description |
---|---|
System.Boolean |
|