I agree it is not up to the bank. It usually happens one of two ways.
A) The dealership refunds the entire amount, then they collect the portion due from the warranty company.
B) The warranty company refunds the entire amount, then they collect the dealership portion from them.
I've never heard...