Class Ecommerce.Cart.AfterPaymentMethodIsChangedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about order and payment method just after PaymentMethod is changed.
public class Ecommerce.Cart.AfterPaymentMethodIsChangedArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.AfterPaymentMethodIsChangedArgs
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterPaymentMethodIsChanged)]
public class EcomCartAfterPaymentMethodIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterPaymentMethodIsChangedArgs afterPaymentMethodIsChangedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterPaymentMethodIsChangedArgs;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.AfterPaymentMethodIsChangedArgs
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
Payment
Gets or sets the payment.
public Payment Payment { get; set; }
Property Value
- Payment
- Payment. Setting this from a notification subscriber will have no effect.
- See Also