# 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](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2F5gftfSsAnUV0N65EaGjT%2Fsandbox-webhooks.png?alt=media\&token=8386c0a6-97c8-4745-bf5a-6d2ef10326e7)

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](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2FOYRuhz9tFIa9u9BX6gzy%2Finsert-webhook-url.png?alt=media\&token=767e530f-3803-4e19-8b3a-1b710ce9a2d9)

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

![Checkbox for "Payment capture completed" Webhook](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2FYynLSePclIdMDFVSDZzf%2Fpayment-capture-completed.png?alt=media\&token=90b3edc4-5fd9-43a6-90fc-ae0d07af2d72)

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](https://1515224304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McBG1PRKZyYYj_bIAX0%2Fuploads%2FjRzjWN7eEGjKMeaMlNaE%2Fwebhook-id-payment-page-settings.png?alt=media\&token=da2b2c47-3073-4a41-bca8-bc1f6047a7eb)

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 %}
