# PayPal Rest API

Before you begin integrating your PayPal account with WPrealy, make sure to satisfy these two condition

1. Use a [PayPal Business Account](https://www.paypal.com/bizsignup/#/checkAccount)
2. Enable the Payout option in your business account to be able to send payment

#### Step 1: Enable Payout <a href="#step-1-enable-payout" id="step-1-enable-payout"></a>

1. Go to 'My Account'

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

2. Under Permission -> Payouts -> Click Enable

<figure><img src="https://docs.afflr.io/~gitbook/image?url=https%3A%2F%2Flh7-us.googleusercontent.com%2FLenA_5X1jd_AgTMqfmOxqgv-J1NvuFI6HqllL0gpbQIJ2cUs2K7PxVn2C2iiI8p4P3dMtb4ptvmDWMRr9ER-3RLg3rKVIoWgtd-L2xTBPOUpzFdLlNkSQBPckM3wvlih7lXV29pC0pjUARWhJs0c1nk&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=9a9d4192&#x26;sv=2" alt=""><figcaption><p>Enable payout</p></figcaption></figure>

Before enabling your account to send payouts, you ought to confirm a few details with PayPal. You can contact their team to enable the feature.

<figure><img src="https://docs.afflr.io/~gitbook/image?url=https%3A%2F%2Flh7-us.googleusercontent.com%2FY_zIu90q6vmhyjZeFiVqXgNZZzAbjCxf6bYRZbMtSbdbbuWJCZuSnSdUq1e3_W8YttpsyKZlGrAN5rTfNEzqEERJEVKD0t_nadFqKVZi90HYJv4neTiPu_tukWZx5W5z3o9sr5ZUjNB6AvoFXkNX62w&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=2a3a0fa1&#x26;sv=2" alt=""><figcaption><p>Request acess</p></figcaption></figure>

#### Step 2: Integrate PayPal with WPRelay <a href="#step-2-integrate-paypal-with-afflr" id="step-2-integrate-paypal-with-afflr"></a>

1. In the Create App dialog box, give a name, select merchant and respective sandbox ID
2. Click Create App

<figure><img src="https://docs.afflr.io/~gitbook/image?url=https%3A%2F%2F1200751259-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4IvcT7tXOmKAPrjmBCkP%252Fuploads%252FqZeuRVPbq8oQhFKi0GoT%252FPayPal%2520Create%2520App.png%3Falt%3Dmedia%26token%3D8c909443-b982-402c-9cd3-63ae8e012ea6&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=37ba70ed&#x26;sv=2" alt=""><figcaption><p>Create app</p></figcaption></figure>

3. Click Create App

<figure><img src="https://docs.afflr.io/~gitbook/image?url=https%3A%2F%2F1200751259-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4IvcT7tXOmKAPrjmBCkP%252Fuploads%252FsUoHlL7RNoXdB6H3CtvM%252FPayPal%2520Apps%2520and%2520Credentials.png%3Falt%3Dmedia%26token%3D84df9f00-f99f-4800-8f46-742ccb2f9d77&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=b7afcfdf&#x26;sv=2" alt=""><figcaption><p>PayPal apps and credentials</p></figcaption></figure>

4. Log into your [PayPal developer portal](https://developer.paypal.com/home/) to visit your Developer account.
5. Click Apps & Credentials

<figure><img src="/files/j592rU1UJfcjgQDxuQsX" alt=""><figcaption><p>Create App Dialog Box</p></figcaption></figure>

6. Copy PayPal Client ID and Secret Key

<figure><img src="/files/oAFbRAWWbcoOEbzLUz4U" alt=""><figcaption><p>Copy Client ID and Secret Key</p></figcaption></figure>

7. Under the PayPal section, toggle the button near the PayPal tab to enable the same
8. Paste the client ID and client secret
9. Click Save

<figure><img src="/files/zwxBU7O4DX0PTXPPmAZU" alt=""><figcaption><p>Save PayPal key in WPRelay</p></figcaption></figure>

**Step 3: Payout with PayPal**

To payout rewards using PayPal:

1. Go to Dashboard -> Payouts
2. Click the Pay button beside the affiliate name

<figure><img src="/files/troWfgu6dabxU0EGNczi" alt=""><figcaption><p>Payout Tab</p></figcaption></figure>

3. In the Pay Affiliate dialog box, enter the amount to be redeemed as a gift card
4. Select PayPal&#x20;
5. Check the details and approve tick-box
6. Click Next

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

Do more with PRO.[ Get WPRelay PRO](https://wprelay.com/pricing/).&#x20;

Still Unclear ?

If you need any assistance, please create a[ support request](https://wprelay.com/support/) at our ticket system. We are always happy to assist you :)

<br>


---

# 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://docs.wprelay.com/settings/payment-methods/paypal-rest-api.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.
