Smalot\Magento\Order\OrderInvoice::cancel PHP Method

cancel() public method

Note that not all order invoices can be canceled. Only some payment methods support canceling the order invoice (e.g., Google Checkout, PayPal Pro, PayPal Express Checkout).
public cancel ( string $invoiceIncrementId ) : Smalot\Magento\ActionInterface
$invoiceIncrementId string
return Smalot\Magento\ActionInterface
    public function cancel($invoiceIncrementId)
    {
        return $this->__createAction('order_invoice.cancel', func_get_args());
    }