# Configuration

#### Brief explanation

In OneKey we provide two environments to our clients, **Staging** and **Production**. Each one with its own set of credentials.

* With your **Staging** credentials you will be able to test the different payment methods and flows with mocked information that simulates real payments, risk free.
* With your **Production** credentials, you will be using real-life gateways and payment information, therefore users will be capable to pay!

## Step-by-step

1. &#x20;In the left-hand menu go to **Woocommerce** > **Settings**.\
   ![](/files/lZubVd6GmvAqNnatpkFD)
2. Then go to **Payments** and you will see **OneKey Payments Checkout** on the method list. Click it to configure :smile:

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

3. In the plugin configuration you will find four sections: ***Environment selection***, ***Staging credentials***, ***Production credentials*** and ***Configuration.***

* ***Environment selection:*** in this section you will be capable to select which environment you want to use at your checkout.\
  :warning:Please use Staging for testing purposes ***only***.
* ***Staging credentials***: this are your Staging environment keys, you can fetch them by logging into the [STG Merchant Panel](https://merchants-stg.onekeypayments.com/), and going into **Settings** >**API Access** > **Deposit credentials** \
  :information\_source:*Make sure to whitelist the IPs in which your WooCommerce site is hosted. You can do so by adding the IPs in the list that is below the credentials.*
* ***Production credentials***: instructions are the same as for *Staging credentials* but in our production environment.
* ***Configuration***: finally in this section you get to choose if you want to enable/disable the plugins and the auto-complete functionality.

4. Lastly, make sure to **Save changes** and yo are good to start using OKP's plugin! :rocket:

<figure><img src="/files/7WLMAa57eYMEQhMrqSoD" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://apidocs.onekeypayments.com/guides/deposits/solutions/plugins/woocommerce/configuration.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.
