It will be a two step process. First you will receive your original refund, and then after amending, if you owe the IRS you would pay them directly.
You can mail a check for the difference if you owe the IRS, or the IRS has many payment options on their website linked below.
https://www.irs.gov/payments