Model
Invoice
Magento\Payment\Model\Source\Invoice
What it does
This source model provides configuration options for automatic invoice creation in payment methods.
Developers use this class to populate dropdown fields in payment method configuration forms, allowing merchants to choose whether invoices should be created automatically when payments are authorized and captured, or if invoices should be created manually.
Public Methods
- toOptionArray()