> For the complete documentation index, see [llms.txt](https://docs.optty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optty.com/direct-api-orders/environments.md).

# Environments

### Environments <a href="#environments" id="environments"></a>

Optty provides both a sandbox testing environment and a production environment for merchants and partners to use. The sandbox environment is connected to live sandbox environments of other payment methods and are not simulated to provide a realistic testing environment. No payment will be taken, however sandbox accounts and testing credentials for each payment method should be utilised.

#### Sandbox Testing Environment <a href="#sandbox-testing-environment" id="sandbox-testing-environment"></a>

| **Authentication** | <https://auth.qa.optty.com/token>               |
| ------------------ | ----------------------------------------------- |
| **Merchant URL**   | <https://api.qa.optty.com>                      |
| **Widget SDK URL** | <https://widgets.qa.optty.com/widget-loader.js> |

#### Production Environment <a href="#production-environment" id="production-environment"></a>

| **Authentication** | <https://auth.optty.com/token>               |
| ------------------ | -------------------------------------------- |
| **Merchant URL**   | <https://api.optty.com>                      |
| **Widget SDK URL** | <https://widgets.optty.com/widget-loader.js> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.optty.com/direct-api-orders/environments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
