protected function OrderSubscriber::voidTransaction in Drupal Commerce Connector for AvaTax 8
Voids a transaction in AvaTax for the given order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
2 calls to OrderSubscriber::voidTransaction()
- OrderSubscriber::onOrderCancel in src/
EventSubscriber/ OrderSubscriber.php - Voids the AvaTax transaction on order cancellation.
- OrderSubscriber::onOrderDelete in src/
EventSubscriber/ OrderSubscriber.php - Voids the AvaTax transaction on order deletion.
File
- src/
EventSubscriber/ OrderSubscriber.php, line 98
Class
Namespace
Drupal\commerce_avatax\EventSubscriberCode
protected function voidTransaction(OrderInterface $order) {
if (!Avatax::hasAvataxAdjustments($order)) {
return;
}
$this->avataxLib
->transactionsVoid($order);
}