create invoice capture amount programmatic magento

create invoice capture amount programmatic magento, In order to capture the amount and create auto invoice programmatic from your custom payment module. Enable invoice variable first in your source model and use this code sample In your model file. Of course, for customer invoice email you need to make some external settings. To check the condition. For example in system.xml file
More