I tried to e file yesterday so I paid my federal return but it was rejected and say I have to mail in return how do I get money back to send with return

I called the bank and it is pending so they can't help,  I am sure IRS will not know what to do with it and not be able to match it with my return when it comes in the mail