Common issues of Auto Invoice for Magento 2

Created by Support Agent, Modified on Tue, 7 Apr at 11:17 AM by Support Agent


Question: 


1/The Payment is not displayed on Select Payment Methods.


2/ I am using Braintree as Payment Gateway, it is the default Credit Card Payment in magento and your module not create the Invoice. I create an order and the Invoice is not created.


Can you check please.

Thank you.



Answer:


1/ The root of problem is several payment methods not having labels to show up in config.

To solve this issue, please open:

app/code/Bss/AutoInvoice/etc/adminhtml/system.xml
edit this line:
<source_model>Magento\Payment\Model\Config\Source\Allmethods</source_model>
by
<source_model>Bss\AutoInvoice\Model\Config\Source\Allmethods</source_model>
then add new file (see attachment)
app/code/Bss/AutoInvoice/Model/Config/Source/Allmethods.php


2/ Please check your Payment Methods setting. 

Auto Invoice for Magento 2 works properly if "New Order Status" is "pending".

With Braintree, it's set "pending_payment". You could customize our module to let it run with "pending_payment" as below:

Replace this file: app/code/Bss/AutoInvoice/Model/Observer/AutoInvoice.php

by the AutoInvoice.php as attachment.



For more information about product, please refer Magento 2 Auto Invoice page.


If you need any further assistance, please feel free to contact us. BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html


Check our extensions:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article