---
updatedAt: 2026-08-25T10:07:07.000Z
agentTools:
  projectIndex: https://developers.international.pagseguro.com/llms.txt
---

# Sandbox

The sandbox allow you to test and integrate with our API without creating a real charge in a credit card.
To use it, you must send requests to our sandbox URL when creating or querying a transaction.

(base sandbox URL: <span class="text-highlight-green">`https://api.sandbox.boacompra.com`</span>).

PagSeguro offers a panel for proper simulation of all status and the integration flow.
Please access the following URL with credentials provided by your Account Manager:

<a href="https://billing-partner.boacompra.com" target="_blank"><https://billing-partner.boacompra.com>.</a>

In the “Transactions test” menu, search for your test transaction:

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/f4b889f-transaction_test-f083ea12.jpg",
        "transaction_test-f083ea12.jpg",
        172,
        59,
        "#dcdcdc"
      ],
      "sizing": "smart",
      "border": false
    }
  ]
}
[/block]

Once you find it, please click on the “detail” icon:

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/a88f0d1-transaction_list-bf0abe2d.jpg",
        "transaction_list-bf0abe2d.jpg",
        880,
        169,
        "#a8a8a7"
      ],
      "sizing": "original"
    }
  ]
}
[/block]

You can select the status you want to simulate and send a notification by clicking “Notify”:

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/7313241-transaction_notification-953370af.jpg",
        "transaction_notification-953370af.jpg",
        862,
        316,
        "#dee3e3"
      ],
      "sizing": "original"
    }
  ]
}
[/block]

## Tokenization Feature

When using `charge[].payment-method.token` and `charge[].payment-info.save` on sandbox environment, the transaction response will always have
the same **payment method object**, which is pre-configured independently of the credit card informed.

In order to use `charge[].payment-method.code` instead of `charge[].payment-method.token` on sandbox environment, use the parameter
**code** as **123E4567E89B12D3A456426655440000** which is the same one returned in the **payment-method object** response.
Any other `payment-method-code` will return an error **210605:charge\_\[0-9]\_payment\_info\_code\_not\_found**.

> #### Payment method object pre-configured

[block:code]
{
  "codes": [
    {
      "code": "{\n    \"code\": \"123E4567E89B12D3A456426655440000\",\n    \"credit-card\": {\n        \"brand\": \"visa\",\n        \"masked-number\": \"************0002\",\n        \"expiration-date\": \"2026-12\"\n    },\n    \"date-created\": \"2018-04-11T11:31:11.571488493-03:00\"\n}",
      "language": "javascript"
    }
  ]
}
[/block]

> #### Error response when using a wrong payment-method-code

[block:code]
{
  "codes": [
    {
      "code": "{\n    \"errors\": [\n        \"code\": 210605,\n        \"description\": \"charge_0_payment_info_code_not_found\"\n    ]\n}",
      "language": "javascript"
    }
  ]
}
[/block]