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
Namespace
Drupal\commerce_avatax\EventSubscriberCode
public function onOrderDelete(OrderEvent $event) {
$this
->voidTransaction($event
->getOrder());
}