I was trying to integrate invoice API and followed this
the documentation states that 2 steps must be done
first, create the invoice (which will result in creating a draft invoice, not instantly charged)
then publish the invoice whenever you want to charge the customer card
so we did that, and it worked for the most part
but then we started detecting receiving a lot of `CARD_DECLINED` error when trying to publish some invoices
that itself is not the problem, but apparently those invoice we fail to publish; seem to be updated from draft to paid a little while after we get the CARD_DECLINED issue
when going back to the documentation; we have noticed that adding `due_date` while creating a draft invoice is required
and the documentation says that the invoice will be automatically charged (probably even without calling the publish-invoice API) even the due date is due
so the question is; how can we stop invoices being charged if/after we fail to publish them for any reason