Class PaymentTransactionService
- Namespace
- Dynamicweb.Ecommerce.Orders.PaymentTransactions
- Assembly
- Dynamicweb.Ecommerce.dll
public class PaymentTransactionService
- Inheritance
-
PaymentTransactionService
- Inherited Members
Methods
CancelPayment(PaymentTransactionKey)
Attempts to cancel the payment transaction.
public virtual PaymentTransactionCancelResult CancelPayment(PaymentTransactionKey key)
Parameters
keyPaymentTransactionKeyThe key of the payment transaction
Returns
- PaymentTransactionCancelResult
An instance of PaymentTransactionCancelResult representing the result of the cancellation.
GetByIds(IEnumerable<string>, string)
Gets payment transactions by the provided IDs and payment ID.
public virtual IEnumerable<PaymentTransaction> GetByIds(IEnumerable<string> ids, string paymentId)
Parameters
idsIEnumerable<string>paymentIdstring
Returns
Exceptions
- ArgumentNullException
An exception is thrown if the
idsis null.
GetByKey(PaymentTransactionKey)
Gets payment transaction by the provided PaymentTransactionKey, or null if not found
public virtual PaymentTransaction? GetByKey(PaymentTransactionKey key)
Parameters
keyPaymentTransactionKeyThe key of the payment transaction
Returns
GetPaymentTransactionProviderInfo(string)
Gets PaymentTransactionProviderInfo for the provided payment ID.
public virtual PaymentTransactionProviderInfo? GetPaymentTransactionProviderInfo(string paymentId)
Parameters
paymentIdstring
Returns
GetPaymentTransactionProviderInfos()
Gets PaymentTransactionProviderInfos about all available IPaymentTransactionProvider implementations.
public virtual IEnumerable<PaymentTransactionProviderInfo> GetPaymentTransactionProviderInfos()
Returns
GetPaymentTransactionsBySearch(PaymentTransactionSearchFilter, string)
Gets payment transactions by search settings
public virtual PaymentTransactionSearchResult GetPaymentTransactionsBySearch(PaymentTransactionSearchFilter searchFilter, string paymentId)
Parameters
searchFilterPaymentTransactionSearchFilterpaymentIdstring
Returns
Exceptions
- ArgumentNullException
An exception is thrown if the
searchFilteris null.