> For the complete documentation index, see [llms.txt](https://bagelpay.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bagelpay.gitbook.io/docs/documentation/testing-mode/test-mode-vs-live-mode.md).

# Test Mode vs Live Mode

## Testing Payments

Use the test card `4242 4242 4242 4242` with any expiration and CVV.

<figure><img src="/files/1wKlY2OiBShTqxn607dQ" alt=""><figcaption></figcaption></figure>

## Activating Test Mode <a href="#activating-test-mode" id="activating-test-mode"></a>

To use the test environment, simply click on the test mode button on the top navbar of the dashboard.

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

All functionality on Bagel will now be in test mode. You can create products, checkout sessions, and receive payments without any real money being involved.

Webhooks and API keys that you will see on the Developer tab will also be exclusively for the test environment.

## Feature Comparison <a href="#feature-comparison" id="feature-comparison"></a>

| **Feature**                                 | **Test Mode** | **Live Mode** | **Is Environment Dependent?** |
| ------------------------------------------- | ------------- | ------------- | ----------------------------- |
| **Create Products (One-Time/Subscription)** | ✓             | ✓             | YES                           |
| **Generate Payment Links**                  | ✓             | ✓             | YES                           |
| **Simulate Payments (Card, Wallet, etc.)**  | ✓             | x             | YES                           |
| **Process Real Payments**                   | x             | ✓             | YES                           |
| **Issue Refunds**                           | ✓ (Simulated) | ✓ (Real)      | YES                           |
| **Access Transaction History**              | ✓ (Simulated) | ✓ (Real)      | YES                           |
| **Download Invoices**                       | ✓ (Simulated) | ✓ (Real)      | YES                           |
| **Link Bank Account**                       | ✓             | ✓             | YES                           |
| **Payouts to Bank Account**                 | x             | ✓             | YES                           |
| **Simulate Failed Transactions**            | ✓             | x             | YES                           |
| **Analytics Graph in Home**                 | ✓ (Simulated) | ✓ (Real)      | YES                           |
| **View Detailed Reports**                   | ✓ (Simulated) | ✓ (Real)      | YES                           |
| **API Keys generation**                     | ✓             | ✓             | YES                           |
| **Real-time Fraud Detection**               | x             | ✓             | YES                           |
| **Webhook Creation**                        | ✓             | ✓             | YES                           |
| **Business Profile section**                | ✓             | ✓             | YES                           |
| **Create multiple Store**                   | ✓             | ✓             | YES                           |
| **Payout Compliance**                       | ✓             | ✓             | YES                           |
| **Transaction Emails**                      | x             | ✓             | YES                           |

## Environment Dependency <a href="#environment-dependency" id="environment-dependency"></a>

**Environment Dependent**

All Environment Dependent features will have independent data in Test Mode and Live Mode. Any changes made in one environment will not affect the other. Eg. API Keys generated in Test Mode will be independent of API keys generated in Live Mode and vice versa

**Environment Independent**

All Environment Independent features will have the same data in both live mode and test mode. Eg. My Account section will have the same data in test mode and live mode. Changes made in one environment will affect the other environment

You can accept real payments only in \`live mode\`.

API Hostnames for Test Mode and Live Mode are below:

* Test Mode: [`https://test.bagelpay.io`](https://test.bagelpay.io/)
* Live Mode: [`https://live.bagelpay.io`](https://live.bagelpay.io)

## Key Highlights <a href="#key-highlights" id="key-highlights"></a>

1. All products created in test mode or live mode will only be available in the respective environment.
2. API keys and Webhooks created in test mode will only be limited to test mode environment and will not affect live mode deployment and vice versa
3. All documents submitted for verification and Bank account details submitted will be the same in test mode and live mode. A change in this information in any environment will also change it in the other environment
