Webhooks
Paddle uses a webhook to tell your site about payments that happen later: renewals, failed payments, pauses, cancellations and refunds. Without a working webhook these do not reach PMPro.
Your webhook address
It is shown in the Paddle settings and looks like this:
https://your-site.com/wp-json/wpall-paddle/v1/webhook
Automatic setup
With Auto-fetch/create Client-Side Token & Webhook Destination ticked, saving the settings creates the destination at Paddle for the active mode and saves its secret key. This is the easiest way.
Manual setup
- In Paddle, go to Developer Tools > Notifications and add a new destination.
- Paste your webhook address as the URL.
- Subscribe to the Transaction, Subscription and Adjustment events.
- Copy the endpoint secret key and paste it in Webhook Endpoint Secret Key for the right mode. Save the settings.
Events the plugin uses
| Paddle event | What the plugin does |
|---|---|
| transaction.completed, transaction.paid | Completes the first order and records renewals. Cancels the subscription when the billing limit is reached. |
| transaction.payment_failed, transaction.past_due | Records a failed recurring payment. |
| subscription.created, activated, updated, trialing, resumed | Keeps the subscription details and the next billing date in sync. |
| subscription.past_due | Handles a failed payment on a subscription. |
| subscription.paused, subscription.canceled | Pauses or cancels the membership and subscription in PMPro. |
| adjustment.created, adjustment.updated | Syncs refunds and chargebacks. |
How the webhook is protected
- Every request is checked against the Paddle-Signature header (HMAC-SHA256) with your endpoint secret. A request without a valid signature is rejected.
- A request older than 5 minutes is rejected (replay protection). Developers can change this with the filter
wpall_pdl_webhook_tolerance. - An event that was already processed (within the last 24 hours) is skipped, so a repeated delivery does not create a second order.
- The sandbox and live secrets are both checked, so a test webhook is recognised as a test.
Opening the webhook address in a browser only shows a short "reachable" message. It changes nothing.