Class Ecommerce.Cart.AfterPaymentIsResetArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about order just after PaymentMethod is reset.
public class Ecommerce.Cart.AfterPaymentIsResetArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.AfterPaymentIsResetArgs
- Inherited Members
Examples
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Dynamicweb.Extensibility.Notifications.Subscribe(Ecommerce.Notifications.Ecommerce.Cart.AfterPaymentIsReset)]
public class EcomCartAfterPaymentIsResetObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Ecommerce.Notifications.Ecommerce.Cart.AfterPaymentIsResetArgs? afterPaymentIsResetArgs = args as Ecommerce.Notifications.Ecommerce.Cart.AfterPaymentIsResetArgs;
if (afterPaymentIsResetArgs is null)
return;
//Add code here
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.AfterPaymentIsResetArgs
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.