I am trying to achivw following:
1. Implementing ShippingProvider which will get all the delivery points to user
2. After the chechout done it will connect to service url and print the shipping documents / order shipping form provider
I tried implementing two classes one imheriting ShippingProvider with all parameters and another one inheriting NotificationSubscriber.
I cannot access paramters in ShippingProvider from NotificationSubscriber. I can access them but they are empty even thou I filed them in in backend.
This is NotificationSubscriber. DPD is ShippingProvider class.
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.CheckoutDoneOrderIsComplete)]
public class DPDOnCheckoutDone : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
    #region Parameters
    private DPD dpd { get; set; }
    #endregion
    public DPDOnCheckoutDone()
    {
        dpd = new DPD();
    }
    public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
    {
        
        if (args == null)
            return;
        if (!(args is Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.CheckoutDoneOrderIsCompleteArgs))
            return;
        Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.CheckoutDoneOrderIsCompleteArgs checkoutDoneOrderIsCompleteArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.CheckoutDoneOrderIsCompleteArgs;
        if (checkoutDoneOrderIsCompleteArgs.Order.ShippingMethod == "DPD")
        {
            
        }
    }
}
Ivan