When a pending payout is canceled, the transactions that were reserved for it are released but get re-subjected to the account's full payout_transaction_delay. As a result, the funds fall under the held balance and are not immediately available for a new payout, even though they already cleared the delay.
This also causes a mismatch between the Available badge on the transactions themselves and the held balance on Finance → Income.
Steps to reproduce
- Use an account with a non-zero payout_transaction_delay (default is 7 days).
- Have balance transactions that have aged past the delay (i.e. currently available).
- Create a payout — this reserves those transactions (payout_transaction_id is set).
- Cancel the payout while it's pending.
- Check the account's balance summary.
When a pending payout is canceled, the transactions that were reserved for it are released but get re-subjected to the account's full
payout_transaction_delay. As a result, the funds fall under the held balance and are not immediately available for a new payout, even though they already cleared the delay.This also causes a mismatch between the Available badge on the transactions themselves and the held balance on Finance → Income.
Steps to reproduce