> For the complete documentation index, see [llms.txt](https://daton-sarasanalytics.gitbook.io/daton/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daton-sarasanalytics.gitbook.io/daton/integrations/data-sources/payments/paypal/how-to-integrate-paypal-with-daton.md).

# How to Integrate PayPal with Daton

### Pre-requisites

Before starting, ensure you have a PayPal business account and an active Daton account.

### Task &#x31;**:** Create a New Paypal Client ID and Client Secret

A client ID and client secret are required to authenticate API calls in PayPal integrations.

* An app is identified by its client ID
* A client secret is used to verify a client ID

{% hint style="info" %}
You need to create a PayPal developer account to get a client ID and client secret for PayPal integrations. For more information, see [Get started with PayPal APIs](https://developer.paypal.com/api/rest/).
{% endhint %}

After you have created a developer account, perform the following steps:

1. Go to the [PayPal Developers website](https://developer.paypal.com/dashboard/) and log in with your PayPal account credentials.
2. Click on **Apps & Credentials** in the top menu. Note that on a mobile device, the menu item may be termed **My Apps & Credentials**.
3. Select the correct environment in the top right corner - **Sandbox** for testing or **Live** for production.
4. Under the **REST API apps** section, click **Create App** to create a new app.
5. Enter a name for your app.
6. Select the REST API app type.&#x20;
7. Click **Create App**. Your new app will be created.
8. On the next screen, you will see the Client ID and Secret for your app.
   * The Client ID is visible by default. Click **Show** under Secret to reveal it.
   * Copy and save both the Client ID and Secret in a secure place. You will need to enter these credentials to authenticate the integration with Daton.

{% hint style="info" %}
Make sure to create apps in both Sandbox and Live environments as needed. The credentials will be different for each environment.
{% endhint %}

### Task 2: Integrate Daton with PayPal

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

   * Integration Name
     * Optionally, add a description to identify the integration.
   * Replication Frequency&#x20;
   * Replication Start Date

   **Note** that the Integration Name will be used to create the integration tables and cannot be modified later.&#x20;

   <figure><img src="/files/DceZg1gFm1tTl8FRPCrR" alt=""><figcaption></figcaption></figure>
3. Optionally, expand the **Advanced Configuration Options** section and, based on your requirements, modify the options to control the loading behavior of Daton.
4. Copy and paste the PayPal Client ID and Secret you created earlier in the respective fields to authenticate the integration and extract data for replication.
   * Then click **Authenticate**.

     <figure><img src="/files/vA5oRVFwNAhLLDPJjSDR" alt=""><figcaption></figcaption></figure>
5. After successful authentication, you will be prompted to choose from the list of available tables. Select the required tables and click **Next**.
   * Optionally, based on your requirement, select specific options for each selected table.&#x20;

     <figure><img src="/files/TSSvjVzr9wKuogfvsywU" alt=""><figcaption></figcaption></figure>
6. Select the required fields for each table and click **Submit.**&#x20;

   **Note** that you will be prompted to select the destination for your account.

   <figure><img src="/files/aYZC4jyGGytdf33ENEtT" alt=""><figcaption></figcaption></figure>
7. Select the destination for your PayPal account and click **Confirm**. An integration successful message will be displayed.

{% hint style="info" %}

## 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;
  {% endhint %}


---

# 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, and the optional `goal` query parameter:

```
GET https://daton-sarasanalytics.gitbook.io/daton/integrations/data-sources/payments/paypal/how-to-integrate-paypal-with-daton.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
