November Happy Hour will be moved to Thursday December 5th.

Class IPaymentExtensions

Extension methods for IPayment.

Inheritance
System.Object
IPaymentExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public static class IPaymentExtensions

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

true if the payment has the given transaction type; false otherwise.