Common issues of Auto Invoice for Magento 2

Created by Nicole Le, Modified on Mon, 31 Jul 2017 at 09:28 AM by Robin Hoang


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.

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


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 atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article