This can occur when multiple merchant accounts have the same Gateway ID entered on them.  When this happens, the Blackbaud Payment Service does not know which merchant account record to use to apply the refund and results in the error: Invalid account number.

To resolve this issue, open each merchant account and ensure that each has a unique Gateway ID.