> For the complete documentation index, see [llms.txt](https://docs.hyperswitch.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperswitch.io/integration-guide/workflows/surcharge/surcharge-setup-guide.md).

# Surcharge Setup guide

Surcharge Manager Setup

{% hint style="info" %}
This section covers the steps to setup surcharge manager using the Hyperswitch Control Center
{% endhint %}

## Steps to setup a rule on Surcharge Manager?

**Step 1:** Go to Workflow -> Surcharge tab on the Hyperswitch Control Center

**Step 2:** Click on create new button

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-9c02c786e7311f15169999b3761dd4952134c70e%2FScreenshot%202024-03-04%20at%206.49.56%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

**Step 3:** Enter the rule name, description and configure your desired rule by selecting the operators and values for the various fields

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-9fc12c9b8c18c584689137ab425d7063717943a2%2FScreenshot%202024-03-04%20at%205.42.22%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

**Step 5:** Add more rules using the plus icon on the top right of the current rule panel

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-5e39eaf920cd9dd396da4a623dc875b03ca24125%2FScreenshot%202024-03-04%20at%206.38.04%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

**Step 6:** Click save to configure and activate the rule

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-9bdb3b637d8fa28b4f833810395540ac18e11802%2FScreenshot%202024-04-15%20at%201.38.07%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

**Step 7:** Your rule is now successfully configured and Surcharge would be applied to all payments conforming to this rule.

To create a test payment, Go to Home and click on Try a test payment.

<figure><img src="https://1943537505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf7BGdsPkCw9nalhAIlE%2Fuploads%2Fgit-blob-2bfb059bc18d9c660c195d811b8305e9257235ea%2FScreenshot%202024-07-02%20at%201.04.09%E2%80%AFPM.png?alt=media" alt=""><figcaption><p>Test payment</p></figcaption></figure>

**Note:**&#x53;urcharge manager supports only one active configuration at a time. Multiple rules can be combined into a single configuration as shown in the example

### FAQs

1. What are some of the payment parameters that I can use to configure Surcharge rules?

* Available Parameters:
  * amount - set rules for a specific value or a range of values for the transaction amount
  * currency - select the currency of transaction
  * payment\_method - configure rules for different payment methods like card, wallet, direct bank debit etc.
  * card\_type - choose between credit and debit cards
  * card\_network - choose between card networks like visa, mastercard etc.
  * billing\_country - to select the billing\_country

2. How do I update the current configuration?\
   Click on Create New and configure a new rule that would replace the existing configuration
3. What happens if I pass `surcharge_details` field in `/payments` request?\
   surcharge\_details if sent in payments create request, surcharge decision manager will be overridden and surcharge sent in the request will be applied.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hyperswitch.io/integration-guide/workflows/surcharge/surcharge-setup-guide.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
