Yes you pay TurboTax its fees for using the software to prepare your tax return. You can pay TT by using a credit card, or by having the fees deducted from your federal refund by a third party bank (for an extra fee.)
Then, if you owe federal or state tax due, you pay the IRS or your state for the tax you owe:
If you have federal tax due you can pay by mailing your payment with the 1040V voucher, (which has the address printed on it, having the payment taken out of a designated bank account, or you can pay directly on the IRS website.
https://ttlc.intuit.com/community/tax-payments/help/how-can-i-pay-my-federal-taxes/00/26212
To apply for a payment plan with the IRS
Apply Online for a Payment Plan
You must pay your state tax due using the state’s preferred method of receiving payment. For most states that will be by making a payment to the state’s own tax website, or by mailing a check or money order.
https://ttlc.intuit.com/questions/1901670-how-do-i-contact-my-state-department-of-revenue
Yes you first have to pay the Turbo Tax fees before you file. How to pay the Online fees
https://ttlc.intuit.com/community/payments/help/how-can-i-pay-for-my-turbotax-online-fees/00/27388
Then to pay the federal tax due. You can enter your bank account info for the IRS to pull it out of your bank. See Direct Debit
What is direct debit and how does it work?
Or pick to mail a check and Turbo Tax will print a 1040V voucher to mail in with a check. Or say you will mail a check then pay online at
How to pay a federal tax due
https://ttlc.intuit.com/community/tax-payments/help/how-can-i-pay-my-federal-taxes/00/26212