---
page_title: Dashboard Surcharge Configuration
product: Surcharge
page_source: https://juspay.io/in/docs/surcharge/docs/surcharge/dashboard-surcharge-configuration
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/surcharge/llms.txt
---


# Configuration of Surcharge logic




### **Step 2:** Surcharge configuration on Juspay Dashboard




#### Step 2.1: Configure Surcharge logic on Juspay Dashboard



* **Login**  to Juspay Dashboard > Navigate to **Payments**  > **PG Control Centre**  > Select **Surcharge**  > Click on **Create New Rule**
* Enter a suitable description under **Rule Description**  > Select the type of Surcharge logic configuration under **Configuration Type** > Click on**Next**
* Surcharge Configuration can be of,
  
  * Rule based
  * Code based
* Either Rule based or Code based can be selected to configure the Surcharge logic.

* **Rule Based UI:** 
  
  * Create a logic/rule by selecting the available options to surcharge on the transactions
  * Logic to be created with the below parameters
    
    1. Select the field “**Select Field** ” which you would to create the rule
    2. Select the Operator “**Select Operator** ” on any of the below to apply the condition
    3. Choose the specific value of the “Select Field” to imply the Surcharge
    4. Enter the Flat Fee, Surcharge Rate, Tax Rate, CGST charge, SGST charge
    5. Once the above logics are created, create a Default logic with which the Surcharge will be applied for the other payment method
  * Proceed with “Send for Approval” and status will move to “Pending”
  * Juspay team will review the created logic and approve the logic
  * Once the logic is approved, Surcharge can be activated with the button “**Activate** ”
  
  [Video](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/surcharge/Screen%20Recording%202024-04-21%20at%2011.11.13%E2%80%AFAM.mov)
* **Code Based UI:** 
  
  * Required Surcharge logic can be written and upload using script to surcharge on the transactions
  * Upload the written logic on the space provided. Please refer to some [sample logics](https://docs.juspay.in/surcharge/docs/surcharge/sample-code-based-logics) for more clarity.
  * Proceed with “Send for Approval” and status will move to “Pending”
  * Juspay team will review the created logic and approve the logic
  * Once the logic is approved, Surcharge can be activated with the button “**Activate** ”
  
  [Video](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/surcharge/Screen%20Recording%202024-04-21%20at%2011.18.05%E2%80%AFAM-CDbbD.mov)


#### Step 2.2: Enable the Surcharge flags on Juspay dashboard



* **Login**  to Juspay dashboard > **Payments**  > **Settings**  > Toggle on the below flags
  
  ![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/surcharge/Screenshot%202024-08-22%20at%2011.18.09%20AM.png)
  *Flag Enablement*

* `Enable Surcharge`
* `Razorpay Surcharge Breakup`(If you are using Surcharge via Razorpay gateway)
* `PayU Surcharge Breakup` (If you are using Surcharge via PayU gateway)
* `Include Surcharge Amount in Refund` Enable this flag in case you want to process full refunds, including the Surcharge amount, if applicable. Refer [here](https://docs.juspay.in/surcharge/docs/surcharge/refunds-on-surcharge-transaction) for more details.

`Show Surcharge Breakup Screen`(Optional)

* Enable this flag if you want to show the Juspay surcharge breakup screen which contains Surcharge calculation before proceeding to the transaction processing

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/surcharge/Screenshot%202024-05-20%20at%203.22.38%E2%80%AFPM.png)
*Order Breakup Screen*




### Step 2.3: Steps to Enable Customer Fee Bearing Surcharge



* Log in to the Juspay Dashboard.
* Navigate to: Payments > PG Control > [Select Gateway] (e.g., BillDesk).
* Click on the Advanced Features tab.
* Locate the option labeled Customer Fee Bearing Surcharge.
* Click on the Edit Advanced Features button in the top-right corner.
* Toggle the Customer Fee Bearing Surcharge setting to true
* Click Proceed to apply and save the changes.
  
  [Video](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/surcharge/Juspay:%20Enable%20Customer%20Fee%20Bearing%20Surcharge.mov)

> **Note**
> * Only if the Surcharge logic is approved, Surcharge logic can be activated.
> * Only if the Surcharge logic is activated, Surcharge flags will be visible on “General Settings” to enable.



---

## See Also

- [Enable Surcharge](https://juspay.io/in/docs/surcharge/docs/surcharge/enable-surcharge)
- [Customer Fee Bearing Surcharge](https://juspay.io/in/docs/surcharge/docs/surcharge/customer-fee-bearing-surcharge)
