After you file

Since the extension was rejected, the IRS did not receive the tax payment.

 

Go to this IRS payment website and use Direct Pay.  You can make the tax payment for the extension and automatically get the extension for the tax return - https://directpay.irs.gov/directpay/payment?execution=e1s1