Table of Contents

Class Ecommerce.Cart.AfterPaymentMethodIsSetArgs

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

Provides information about order and payment method just after PaymentMethod is set.

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

Examples

using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterPaymentMethodIsSet)]
      public class EcomCartAfterPaymentMethodIsSetObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterPaymentMethodIsSetArgs afterPaymentMethodIsSetArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterPaymentMethodIsSetArgs;

              //Add code here
          }
      }
  }

Remarks

The passed NotificationArgs is Ecommerce.Cart.AfterPaymentMethodIsSetArgs

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.

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

To top