Bank transfers are confirmed by a person, so they are not instant. The flow:
Your note lands in a review queue. When the transfer is confirmed, the invoice is marked paid and anything waiting on it proceeds. If the amount differs from the invoice - a partial payment - the invoice stays open for the remainder.