Home > Docs > PayPal Express Checkout Payment Gateway for WooCommerce > Configuring Webhooks for WooCommerce Order Status Updates

Configuring Webhooks for WooCommerce Order Status Updates

Last updated on August 19, 2024

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:

  1. Select the Smart Button as the payment button.
  2. Copy the Webhook URL of your site.
  3. Paste the site’s Webhook URL in the PayPal Developer dashboard.
  4. Upon registering the Webhook, paste the Webhook ID on your site.
  5. Finally, click on Save Changes.

Configuring Webhook with PayPal

📌

Note:

Currently, our plugin supports the following event types:

  1. Checkout order approved
  2. Payment capture completed
  3. Payment capture denied

Also, make sure to enable the Save abandoned orders option on the plugin’s settings page.

Here are the detailed steps on how to configure the Webhook with PayPal:

  1. Navigate to WooCommerce > Settings > Payments > PayPal Express

OR

  1. Navigate to Plugins > Installed Plugins > PayPal Express Checkout Payment Gateway for WooCommerce > Settings.
  1. Head to the Paypal Express section and select Smart Button under the Payment Button option. The PayPal Webhook feature is available only under the Smart Button.
  2. Now, head to the PayPal Webhook Credentials section, and copy the Webhook URL from the PayPal Webhook URL option.
PayPal Webhook Credentials section
PayPal Webhook Credentials section
  1. 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.
  1. Click on the preferred App from the list of REST API apps. You can also create a new App by clicking the Create App button.
Selecting an app from the list of REST API apps
Selecting an app from the list of REST API apps
  1. Now, scroll down and find the Live/Sandbox Webhooks section.
  2. Click on the Add Webhook button. Paste the copied Webhook URL and select the event types. Currently, the plugin supports the following event types:
    1. Checkout order approved
    2. Payment capture completed
    3. Payment capture denied

Click on Save to add the webhook.

  1. Upon adding the Webhook, you can see a Webhook ID. Copy this and paste it under the PayPal Webhook ID section of the plugin.
  1. Finally, click on Save changes to reflect the changes.