/// <summary> /// Handle order placed event /// </summary> /// <param name="eventMessage">Event message</param> public void HandleEvent(OrderPlacedEvent eventMessage) { if (eventMessage.Order == null) { return; } //ensure that Avalara tax provider is active if (!_taxPluginManager.IsPluginActive(AvalaraTaxDefaults.SystemName)) { return; } //create tax transaction _avalaraTaxManager.CreateOrderTaxTransaction(eventMessage.Order); }