Invoice
Magento\Payment\Model\Source\Invoice
What it does
This class provides configuration options for automatic invoice creation in payment methods.
It returns a simple yes/no option array where 'Yes' corresponds to the authorize and capture action (automatically creating invoices) and 'No' represents no automatic invoice creation.
Developers use this in payment method configuration forms to allow merchants to choose whether invoices should be automatically generated when payments are captured.
Public Methods
- toOptionArray()