If the electronic payments session has gone through:
1.Add a Debtors Adjustment Down for the value of the failed direct debit, against the relevant customer. Note the GL Account for the Expense, as you will use the same GL Account for Point 3.
2.Add an RFC for the same value, not using Direct Debit as payment type, but against the same bank account as the original direct debit.
3.Raise a Debtors Adjustment Up for the value of the failed direct debit.
4.Raise a Direct Debit payment against the Debtor Adjustment Up, using correct Bank information.
Further information
Electronic Payments Direct Debit Setup