Table of Contents

Class Ecommerce.Cart.BeforePaymentIsResetArgs

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

Provides information about order just before PaymentMethod is reset.

public class Ecommerce.Cart.BeforePaymentIsResetArgs : NotificationArgs
Inheritance
Ecommerce.Cart.BeforePaymentIsResetArgs
Inherited Members

Examples

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Dynamicweb.Extensibility.Notifications.Subscribe(Ecommerce.Notifications.Ecommerce.Cart.BeforePaymentIsReset)]
public class EcomCartBeforePaymentIsResetObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
    public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
    {
        var beforePaymentIsResetArgs = args as Ecommerce.Notifications.Ecommerce.Cart.BeforePaymentIsResetArgs;
        if (beforePaymentIsResetArgs is null)
            return;

        //Add code here
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Cart.BeforePaymentIsResetArgs

Properties

Order

Gets or sets the order/cart.

public Order Order { get; set; }

Property Value

Order

Order/cart. Setting this from a notification subscriber will have no effect.

See Also

To top