I know these situations can be tricky, so it's okay to not have all the answers. The key here is knowing where to reach out to find them. Again, an accountant is going to be a great asset here as they'll know the best method for recording the taxes related to this situation.
Generally speaking, when recording journal entries in QuickBooks Online, the taxes need to be added as a separate line so that they can be properly mapped to the tax centre, which is something an accountant can help with. In addition to that, they'll be able to let you know if you even need to do that. Check out the end of my original response to you to see how you can connect with an accountant using QuickBooks Online.
I hope that helps clarify the situation.