The invoice will be accounted.
The invoice will be accounted.
It will be captured in case of a shipping invoice and it will be refunded in
case of an appeasement, return case or return invoice.
The accounting will be handled in the payment hooks
PaymentHooks.capture(Invoice) or
PaymentHooks.refund(Invoice). The implementing script could add
payment transactions to the invoice. The accompanying business logic will
set the status to PAID
or FAILED
.
The accounting will fail when the invoice state is different to STATUS_NOT_PAID or STATUS_FAILED.
The method implements its own transaction handling. The method must not be called inside a transaction.
true
when the accounting was successful, otherwise false
.