Table of Contents

Class Ecommerce.Order.BeforePaymentFeeCalculationArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Provides information about order before payment fee calculation.

public class Ecommerce.Order.BeforePaymentFeeCalculationArgs : NotificationArgs
Inheritance
Ecommerce.Order.BeforePaymentFeeCalculationArgs
Inherited Members

Examples

using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Order;
using Dynamicweb.Extensibility.Notifications;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforePaymentFeeCalculation)]
public class EcomOrderBeforePaymentFeeCalculationObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforePaymentFeeCalculationArgs beforePaymentFeeCalculationArgs)        
            return;        

        // Add code here
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Order.BeforePaymentFeeCalculationArgs

Constructors

BeforePaymentFeeCalculationArgs(Order, PriceInfo)

Initializes a new instance of the Ecommerce.Order.BeforePaymentFeeCalculationArgs class.

public BeforePaymentFeeCalculationArgs(Order order, PriceInfo paymentfee)

Parameters

order Order

The order.

paymentfee PriceInfo

The paymentfee.

Properties

Order

Gets the order.

public Order Order { get; }

Property Value

Order

The order.

PaymentFee

Gets the payment fee.

public PriceInfo PaymentFee { get; set; }

Property Value

PriceInfo

The payment fee.

See Also

To top