Typically, if the merchant is in Chapter 11, the BK Court would need to approve any funding of the merchant as a Debtor In Possession financing arrangement. Not sure how you get around the DIP Court required approval-