The Payment Gateway Plugin for PayPal WooCommerce allows you to easily integrate the payment gateway into your WooCommerce store. By configuring the webhook feature, the WooCommerce order status will be automatically updated based on the notification from PayPal. This is a useful feature for orders with delayed payments. Follow the below steps to add your site’s webhook to PayPal:
- Select the Smart Button as the payment button.
- Copy the Webhook URL of your site.
- Paste the site’s Webhook URL in the PayPal Developer dashboard.
- Upon registering the Webhook, paste the Webhook ID on your site.
- Finally, click on Save Changes.
Configuring Webhook with PayPal
Note:
Currently, our plugin supports the following event types:
- Checkout order approved
- Payment capture completed
- Payment capture denied
Also, make sure to enable the Save abandoned orders option on the plugin’s settings page.
Below are the specific steps for setting up the Webhook with PayPal:
- Go to Plugins > Installed Plugins > PayPal Express Checkout Payment Gateway for WooCommerce > Settings.
- Go to the Paypal Express area and choose Smart Button in the Payment Button option. The PayPal Webhook feature is exclusively accessible with the Smart Button.
- Next, go to the PayPal Webhook Credentials section and copy the Webhook URL from the PayPal Webhook URL field.

    4. Now paste this URL into your PayPal Developer Dashboard. To do so, click on the PayPal Developer Dashboard hyperlink        in the help text. From the PayPal Developer Dashboard, click on the API credentials option.
.  
     5. Select the desired App from the list of REST API apps. You can also make a new App by clicking the Create App button.

    6. Next, scroll down to locate the Live/Sandbox Webhooks section.
    7. Click the Add Webhook button. Paste the copied Webhook URL and choose the event types. The plugin currently supports        these event types:
- Checkout order approved
- Payment capture completed
- Payment capture denied
Hit Save to include the webhook.

    8.After adding the Webhook, you’ll see a Webhook ID. Copy it and paste it in the PayPal Webhook ID field of the plugin.
. 
9. Finally, click on Save changes to reflect the changes.