thanks for this addon, I think it works so far. One question:
If payment with credit card fails, the order goes trough, it is finished, but gets the status "cancelled". These orders still get a proper invoice number, right? Would it be possible to give them a temporary number as well and only use proper invoice numbers for orders with the status "paid" or "sent"?