# Payment Fee Tax

Now, you can also calculate tax on payment fee by setting up a tax class from the backend.

<figure><img src="/files/L9U0cbfbOPaKVpMFbj0e" alt=""><figcaption></figcaption></figure>

**Calculate Tax on Payment Fee:** Set Yes if you want to calculate tax on payment fee else you can keep it turned off.

**Tax Class:** Select the tax class you want to apply on Payment fee.

**Payment Fee:** Option to include or exclude tax in payment fee.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.magecomp.com/magento-2-payment-fee-extension/payment-fee-tax.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
