public function OrderSubscriber::onOrderCancel in Drupal Commerce Connector for AvaTax 8
Voids the AvaTax transaction on order cancellation.
Parameters
\Drupal\state_machine\Event\WorkflowTransitionEvent $event: The workflow transition event.
File
- src/
EventSubscriber/ OrderSubscriber.php, line 78
Class
Namespace
Drupal\commerce_avatax\EventSubscriberCode
public function onOrderCancel(WorkflowTransitionEvent $event) {
$this
->voidTransaction($event
->getEntity());
}