> For the complete documentation index, see [llms.txt](https://docs.paymentpageplugin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.paymentpageplugin.com/payment-gateways/paypal/paypal-webhook-configuration.md).

# PayPal Webhook Configuration

Once you've configured your PayPal connection, you may want to set up webhooks in order for [Form Actions on Submit](https://docs.paymentpageplugin.com/features/form-actions-on-submit) to work properly.&#x20;

To create a Webhook, go to the [PayPal My Apps & Credentials](https://developer.paypal.com/developer/applications) section.

{% hint style="info" %}
Creating a webhook is the same process in TEST and LIVE modes - just ensure you've clicked "Sandbox" or "Live" using the switcher at the top of the [My Apps & Credentials](https://developer.paypal.com/developer/applications) section.&#x20;
{% endhint %}

Click the application you created in [PayPal Setup](https://docs.paymentpageplugin.com/payment-gateways/paypal/paypal-setup), and scroll to the bottom of the application details to edit the section called "Sandbox Webhooks."

![Sandbox Webhooks in PayPal Developer Portal](/files/bwU1B7V4GJ5oP8WAqZ7I)

Click "Add Webhook."

Paste in the Webhook URL from the Payment Page plugin settings, which is dynamically generated for your site:

![Webhook URL Field for PayPal Sandbox Webhooks](/files/aulQ5HVD95hx2ZNbWo29)

Then, select the option for "Payment capture completed."

![Checkbox for "Payment capture completed" Webhook](/files/pUxa3VQcm6WSL7WJzJH6)

Click "Save" at the bottom.&#x20;

Copy the newly created "Webhook ID" into the Payment Page plugin settings and click "Save Settings."

![Webhook ID Field in the Payment Page Plugin Settings](/files/Ls0CD0GGS6NRCW5C5gns)

That's it! Your new webhook is properly configured in TEST or LIVE modes.&#x20;

{% hint style="success" %}
Please reach out to <support@gauchoplugins.com> with any questions.&#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://docs.paymentpageplugin.com/payment-gateways/paypal/paypal-webhook-configuration.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.
