You are here

public function OrderSubscriber::onOrderDelete in Drupal Commerce Connector for AvaTax 8

Voids the AvaTax transaction on order deletion.

Parameters

\Drupal\commerce_order\Event\OrderEvent $event: The order event.

File

src/EventSubscriber/OrderSubscriber.php, line 88

Class

OrderSubscriber

Namespace

Drupal\commerce_avatax\EventSubscriber

Code

public function onOrderDelete(OrderEvent $event) {
  $this
    ->voidTransaction($event
    ->getOrder());
}