Click or drag to resize

EcommerceCartAfterPaymentMethodIsChangedArgs Class

Provides information about order and payment method just after PaymentMethod is changed.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartAfterPaymentMethodIsChangedArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class AfterPaymentMethodIsChangedArgs : NotificationArgs

The EcommerceCartAfterPaymentMethodIsChangedArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartAfterPaymentMethodIsChangedArgs
Initializes a new instance of the EcommerceCartAfterPaymentMethodIsChangedArgs class
Top
Properties
  NameDescription
Public propertyOrder
Gets or sets the order/cart.
Public propertyPayment
Gets or sets the payment.
Top
Remarks
The passed NotificationArgs is EcommerceCartAfterPaymentMethodIsChangedArgs
Examples
C#
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
          }
      }
  }
See Also