Plugin Contributor
Ewout
(@pomegranate)
Hello Andres,
The invoice is only created automatically when you send it by email, either to the shop manager (new order email) or to the customer. The fact that the pending order in your shop has an invoice number suggests that you have attached the pdf to the admin new order email, is that correct?
More information: When is the PDF invoice number assigned?
Hello,
No. I do not want the pending order to have an invoice number. Only for the completed order. How can I disable that? In the settings, I have only completed orders selected and still showing in the pending order.
Best regards,
Plugin Contributor
Ewout
(@pomegranate)
Are you by any chance using the RedSys payment gateway?
Yep. We use RedSys Payment Gateway.
Plugin Contributor
Ewout
(@pomegranate)
I see – we have had several other customers that have had an issue with this gateway creating invoices with our plugin for pending payment orders. We are releasing an update next week that allows you to globally prevent an invoice to be created for specific order statuses. Stay tuned!
Thank you so much for the quick response.
Looking forward to it.
Plugin Contributor
Ewout
(@pomegranate)
We released this update last monday (2.3.0): after you have installed this update you can disable invoices for specific statuses (pending, cancelled, failed, any status) via WooCommerce > PDF Invoices > Documents > Invoice:

Thank you for the update! The plugin was updated on our site and seems to work as expected. Great support!
We will definitely get in touch if something unexpected comes up.
Best regards,