See also:
- How is a payment authorization voiding implemented?
- How is
\Magento\Sales\Model\Order\Creditmemo::canRefund()
implemented and used? - How is a payment method’s
canVoid()
used? - How is
\Magento\Sales\Model\Order\Payment::canVoid()
implemented and used? - How is
\Magento\Sales\Model\Order\Invoice::canVoid()
implemented and used?