Skip to content

Stop auto creating invoice for authorized.net cim payment method -M2

I want to capture order payment but do not want to create invoice.

How can we achieve this?

I found this file:
vendor/magento/module-sales/Model/Order/Payment/Operations/CaptureOperation.php

Any help will be appriciated.

enter image description here

enter image description here