# How to Integrate Razorpay with Daton

### Prerequisites

Before starting, ensure you have an active Daton and Razorpay account.

### Task &#x31;**: Generate an Access token** for your Razorpay account

* Log in to your Razorpay account and select **Settings** on the left menu.  &#x20;
* Navigate to the API section and click **Generate Test Key.**&#x20;

<figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FkZkkU2YjgkwbTbcvlHgP%2F2Razorpar%20API.png?alt=media&#x26;token=19980ba7-595e-4e45-8205-e0ea3d13a70f" alt="" width="563"><figcaption></figcaption></figure>

* Your API Key Id and Key Secret will appear on your screen. Save the credentials as they will be used during Razorpay integration with daton and click **OK.**

  <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FsXlbvceLxkS3N5IYckrr%2F3Razorpar%20API.png?alt=media&#x26;token=982d2c79-6eab-487c-9515-568aabbe0dc2" alt="" width="563"><figcaption></figcaption></figure>

### **Task 2:** ​Integrate Daton with Razorpay Account

1. Log in to your [Daton account](https://daton.sarasanalytics.com/u/integrations-list) and search for Razorpay in the list of Connectors, then click **Configure**.
2. Enter the following details and click **Authenticate**:&#x20;

   * Integration Name&#x20;
   * Replication Frequency&#x20;
   * Replication Start Date&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2F786VPbd2SVUDiTvQpvc0%2F1Razorpay%20v2.png?alt=media&#x26;token=bf8fc791-eb97-4618-90d8-fca71ad605a3" alt=""><figcaption></figcaption></figure>

   **Note** that the Integration Name will be used to create the integration tables and cannot be modified later.
3. Provide the following Razorpay API credentials to **authenticate** the integration:&#x20;

   * User ID
   * API key

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2FmVYqZm0zvvO6LFweTSQg%2F2Razorpay%20v2.png?alt=media&#x26;token=6203d0d2-3163-459f-9140-ab4249db871d" alt=""><figcaption></figcaption></figure>
4. After successful authentication, you will be prompted to choose from the list of available tables. Select the required tables and click **Next**.&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2F584Mt1WFLNOyWTa3qIcG%2F3Razorpay%20v2.png?alt=media&#x26;token=a61838b9-f960-47a0-8839-5393dd4f4ac1" alt=""><figcaption></figcaption></figure>
5. Select the required fields for each table and click **Submit.**&#x20;

   <figure><img src="https://15515196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LbJ1eMq5M51cIpU163R%2Fuploads%2Fi7LtBwzE1gLX3wzWPcWU%2F4Razorpay%20v2.png?alt=media&#x26;token=a199922e-cbbf-4bbc-839e-63d60f975e71" alt=""><figcaption></figcaption></figure>

   **Note** that you will be prompted to select the destination for your account.
6. Select the destination for your store or shop and click **Confirm**. An integration successful message will be displayed.

## Important Note

* Integrations would begin in the Pending state and change to the Active state once the first job successfully loaded data into the configured warehouse.&#x20;
* Users can check job status and process logs from the integration details page by clicking on the integration name in the active list.&#x20;
* Users can Re-Authenticate, Edit, Clone, Pause, or Delete the integration at any moment by clicking on settings. You can also adjust the frequency and history of the integration.&#x20;
* On the Sources page, click Integration to access each table in your integration. The page also shows the state of each table, the last replicated time, and Reload access buttons.&#x20;
