> ## Documentation Index
> Fetch the complete documentation index at: https://docs.v2.topup.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Testing Environment

> UAT and Sandbox Testing Guidelines.

# Testing Environment

This guide provides instructions for testing your Tumipay integration in the Sandbox environment before moving to production.

## Environment for Certification

Before going live with your integration, all implementations must be certified in the Sandbox environment. This ensures that your system properly handles all transaction flows, including approvals, rejections, and webhook notifications.

### Transaction Approval

To approve a transaction during testing, follow these steps:

1. **Use the PSE button:**
   Navigate to the list of banks and select **Banka**.

2. **Complete the form:**
   Fill out the form with the required user information to proceed.

3. **Final transaction status:**
   At this point, a webhook notification will be triggered based on the transaction's status.

## Sandbox Testing Parameters

### PayIn Testing

To control transaction outcomes in the sandbox environment:

* **For approved transactions:**
  Use the email **`approved@tumipay.co`** in the customer\_data.email field.

* **For rejected transactions:**
  Use any other email domain not ending in "uat.topup.com.co".

For methods that stay **pending** (`BREB`, `EFECTY`, `SPEI`, `QR`, and others), use the [Sandbox Confirm](https://docs.v2.topup.com.co/api-reference/sandbox.md) endpoints to approve, reject, or expire the transaction without waiting for an external webhook.

**CARD**, **PSE**, and **NEQUI\_PUSH** are exceptions: they are **not** confirmed through sandbox confirm. For **CARD**, the result is fixed by the [test card number](https://docs.v2.topup.com.co/api-reference/payin.md#sandbox-test-cards). For **PSE**, create the PayIn with bank **Banka** and complete the normal flow using the email rules above. For **NEQUI\_PUSH**, sandbox automatically simulates the push after create — see [Colombia PayIn](https://docs.v2.topup.com.co/docs/co/payin.md).

### Card Payment SDK

Use the [Cards SDK Demo](https://cards-sdk.uat.topup.com.co/) to test `initialize()`, `validateCard()`, `getBinInfo()`, and `authenticateCard()` in UAT with your merchant credentials before integrating `tumipay-cards-js`. See the [SDK reference](https://docs.v2.topup.com.co/docs/co/sdk.md) for method details and error codes.

### PayOut Testing

For PayOut transaction testing:

1. First create a successful PayIn transaction to fund your wallet
2. Then initiate a PayOut with the following test parameters

* **For testing transaction outcomes using description field:**
  * **For approved transactions:** Send "APPROVED" in the description field
  * **For rejected transactions:** Send "REJECT" or any other value in the description field

When the PayOut is already waiting for the bank, use [Sandbox Confirm](https://docs.v2.topup.com.co/api-reference/sandbox.md) to force `APPROVED`, `REJECTED`, or `EXPIRED` and receive the merchant webhook. This applies to Peru and Colombia `BANK_TRANSFER`, Guatemala `BANK_TRANSFER`, and Mexico `SPEI`. Guatemala confirm returns `NOT_FOUND` if the payout has not reached the bank yet.

## Webhook Testing

When testing webhook integrations:

1. Make sure your webhook endpoint is publicly accessible
2. Your endpoint should return a 200 OK response
3. Verify that you're correctly handling the signature validation

## Moving to Production

Once you've thoroughly tested your integration in the Sandbox environment:

1. Submit your integration results to [tecnologia@tumipay.co](mailto:tecnologia@tumipay.co)
2. Our team will review your implementation
3. Upon approval, you'll receive production credentials

Note: Production credentials are distinct from Sandbox credentials and should be securely stored.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.