Title: PDF created when order failed
Last modified: June 26, 2018

---

# PDF created when order failed

 *  Resolved [mleone20](https://wordpress.org/support/users/mleone20/)
 * (@mleone20)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/pdf-created-when-order-failed/)
 * Hi,
    I’m using PayPal as gateway and someotimes our clients doesn’t have enough
   money on their account. When it happens, Paypal’s IPN system notifiy woocom as“
   failed” and then the order move from the state of “pending” to “failed”. In that
   case, the plugin should not create the invoce but it does anyway but that’s wrong.
   Is it a bug or a bad configuration?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/pdf-created-when-order-failed/#post-10436564)
 * Hi! This is a ‘bad configuration’ as you call it 🙂
    It sounds like you may have
   setup the attachment for the New Order admin email, this is also sent for orders
   that are failing. Do note that seeing a button to create the invoice number is
   not an indication that there’s an invoice, only when you see an invoice number/
   date there is an invoice.
 * More information: [When is the PDF invoice number assigned](http://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/invoice-numbers-explained/#when-is-the-pdf-invoice-number-assigned)
 * Hope that helps!
 *  Thread Starter [mleone20](https://wordpress.org/support/users/mleone20/)
 * (@mleone20)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/pdf-created-when-order-failed/#post-10436580)
 * Ok! In fact, i did set the email for “New order admin”. I’ll remove it and wait
   for the next failure 😉
 * Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PDF created when order failed’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

## Tags

 * [attachment](https://wordpress.org/support/topic-tag/attachment/)
 * [cancelled](https://wordpress.org/support/topic-tag/cancelled/)
 * [Failed](https://wordpress.org/support/topic-tag/failed/)
 * [failed order](https://wordpress.org/support/topic-tag/failed-order/)

 * 2 replies
 * 2 participants
 * Last reply from: [mleone20](https://wordpress.org/support/users/mleone20/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/pdf-created-when-order-failed/#post-10436580)
 * Status: resolved