# Gateway

Gateway Cost Settings help you track **payment gateway transaction fees** and include them in your profit calculations.

#### **How it works**

Bloom handles **Shopify gateway costs automatically**, so in most cases you don’t need to add anything manually.

* **Shopify Payments**\
  If an end customer checks out using **Shopify Payments**, Bloom automatically pulls:
  * Percentage-based fee
  * Fixed fee (in USD)\
    These are applied based on the merchant’s **Shopify plan**.
* **Other Payment Gateways**\
  If an end customer uses a **non-Shopify payment gateway**, Shopify applies an **alternative percentage fee** based on the merchant’s Shopify plan. Bloom automatically accounts for this as well.

#### **Adding Other Gateway Costs**

For payment gateways that are **not covered by Shopify** (for example, PayPal or custom gateways), you can add the costs manually.

1. Click **Add Gateway Cost**.
2. Enter:
   * **Percentage fee**
   * **Fixed fee**
   * **External fee** (if applicable)
3. Click **Save**.

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

#### **Notes**

* Shopify Payments fees are **automatically synced** and do not require manual input.
* Manual gateway costs apply **only to the selected gateway**.
* Always recalculate after making changes to ensure accurate profit metrics.


---

# 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.bloomanalytics.io/cost-setting/gateway.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.
