Magento – Order Status Processing after Shipment and Generate Invoice also Invoice status showing pending in Magento2

create-invoicemagento2magento2.2magento2.3sales-order

Shipment completed and generate invoice but order status showing Processing and invoice is in pending.

Also invoice showing a Capture button.

why? Anyone Know?
enter image description here
enter image description here

Best Answer

You need to select capture option during invoice creation

if you select

Capture Offline When the invoice is submitted, the system does not capture the payment. It is assumed that the payment is captured directly through the gateway, and you no longer have the option to capture this payment through Magento. Invoice status goes to Paid

Capture online When the invoice is submitted, the system captures the payment from the third-party payment gateway like when you charge credit cards using any gateway. Invoice status goes to Pending.

Not Capture When the invoice is submitted, the system does not capture the payment. It is assumed that you will capture the payment through Magento at a later date. There is a Capture button in the completed invoice. Before capturing, you are able to cancel the invoice.

For Reference: https://docs.magento.com/m2/ce/user_guide/sales/invoice-create.html

I hope this will help