> For the complete documentation index, see [llms.txt](https://docs.magecomp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.magecomp.com/magento-2-razorpay-payment-gateway/api-key-and-api-secret-key.md).

# API Key & API Secret Key

**Step 1:** Sign in/Login to the **Razorpay Account.**

<https://razorpay.com/>&#x20;

**Step 2:** Now, click on **Account & Settings** to get the Merchant Name.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FoTOGtsnwLuVLoVA83YI6%2FMerchant%20Name.png?alt=media&amp;token=547c20d2-31dd-4988-9a0c-cd3f60f2250d" alt=""><figcaption></figcaption></figure>

**Step 3:** Now, from the Account & Settings section, click on **API Keys**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FUQGgzcYo4k3POmxjWVdb%2FAPI%20Keys.png?alt=media&amp;token=0a46c74d-1245-48e6-a513-30df10ff17e7" alt=""><figcaption></figcaption></figure>

**Step 4:** Next, click on **Generate Test Key** to get the **API Key** and **Secret API Key**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2Fb6QhUK77Xa9LsoBRSWlE%2FGenerate%20keys.png?alt=media&amp;token=33ecb90a-6c32-441a-9fbb-05042e3ec805" alt=""><figcaption></figcaption></figure>
