We are getting problems with Authorize.net 'timing out' but then creating the order in Magento and then creating the transaction on Authorize.net.
To resolve, I have to go to Authorize.net and capture funds there. However, this leaves the invoice in Magento as unpaid.
Is there a place in the DB where I can change this status or is there some code to make the Authorize.net/Magento 2.2 connection more reliable? It doesn't happen often, but it happens enough to be annoying.
Best Answer
In DB you can change 'state' Column value to 2 in 'sales_invoice' table.
Gel all invoice state : vendor/magento/module-sales/Model/Order/Invoice.php
For changing the state by coding, looks this model : vendor/magento/module-sales/Model/InvoiceOrder.php