> For the complete documentation index, see [llms.txt](https://docs.helpyousponsor.com/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.helpyousponsor.com/guides/getting-started/quick-start-guide/payment-gateways/paypal-setup.md).

# PayPal Setup

To integrate PayPal into Gratona, we’ll require you to provide your Client ID, Secret and Webhook ID.

### Getting Client ID and Secret

Get the PayPal Client ID and Secret from **Apps & Credentials** in the PayPal Developer Dashboard. If you do not already have an app, select **Create App** and follow PayPal's [REST API authentication guidance](https://developer.paypal.com/api/rest/authentication).

<figure><img src="/files/vzlh0LponXJVRQuRD24e" alt="Gratona screen"><figcaption><p>Gratona screen</p></figcaption></figure>

Once you have got the Client ID and secret, the next step is to create a Webhook so as to obtain a Webhook ID.

### Getting Webhook ID

After creating the app, you have to choose the one that you want to connect to Gratona.\
Select the app that you want to use. You’ll be taken to that app page, scroll down to where you’ll find live Webhooks.

<figure><img src="/files/SKaTuyf884KZf2MTPnUP" alt="Gratona screen"><figcaption><p>Gratona screen</p></figcaption></figure>

Click the "**Add Webhook**" button. You will be presented with a form to place the "**Webhook URL**". Below is the URL to place there.

{% embed url="<https://api.helpyousponsor.com/v1/paypal/webhook>" %}

You can also get the Webhook URL from the PayPal payment integration in Gratona.

<figure><img src="/files/cIq8rkabHdjYiEBzCI33" alt="Screenshot 2025 03 27 at 2.27.47 PM"><figcaption><p>Screenshot 2025 03 27 at 2.27.47 PM</p></figcaption></figure>

After adding the webhook URL, go to the "**events type**" choose "**Payment Sale Completed**" under "**Payments & Payouts**" and then save.

Once saved, the page will appear as shown below showing the Webhook ID.

<figure><img src="/files/oUACRdCXyai0N76hRKKP" alt="Gratona screen"><figcaption><p>Gratona screen</p></figcaption></figure>

In Gratona, open Quick actions and search for **Payment Gateways**, then open the **Other Payment Gateways** tab.\
\
Click "**View Integration**" for PayPal and add the Client ID, Secret and Webhook ID.

<figure><img src="/files/8XiyOOECNC8hT4yT4lw8" alt="Gratona screen"><figcaption><p>Gratona screen</p></figcaption></figure>
