# gateway.bank_account.live_not_permitted

> For the complete machine-readable documentation index, see [llms.txt](https://apidocs.chargebee.com/llms.txt).


**gateway**

A live bank account was used in a test environment. This happens when real bank account credentials are submitted while the payment system is operating in sandbox or test mode.

## Recommended Customer Message

We are unable to process since using a live account is not permitted in Test mode. Kindly use a sandbox account in test mode.

## Root Cause[](#root-cause)

-   **Live account used in test environment:** The customer attempted to use a real bank account while the system was operating in test mode.
-   **Environment mismatch:** Initiating transactions in test mode but using production/live bank account credentials.
-   **Incorrect account setup for testing:** Sandbox or test account details were not used as required in the testing environment.
-   **Gateway enforcement:** The payment gateway prevents real bank account details from being used in a non-production environment for security and compliance reasons.

## Troubleshooting and Solutions[](#troubleshooting-and-solutions)

-   Use sandbox or test bank account details while operating in test mode.
-   Verify that the payment environment is correctly set to production before using live bank account details.
-   Clearly separate and document the usage of test and live account environments to avoid confusion.
-   Retry the transaction only after ensuring that the correct account type is used for the current environment.
-   Review payment gateway documentation for guidelines on using appropriate test data in the sandbox environment.

