doorpay

Webhook setup

How to Connect Lemon Squeezy Webhooks to WooCommerce

Keep provider order events, signing secrets and WooCommerce fulfillment connected—without relying on the customer’s return page.

Doorpay guides9 min readSources checked
Conceptual Lemon Squeezy signed order event flowing through Doorpay to verified WooCommerce order handling.
Original conceptual illustration. Doorpay supplies integration software; the connected provider supplies payment services.

Why the webhook connection matters

Lemon Squeezy WooCommerce webhooks connect provider payment activity to the store’s order records. A customer pays through Lemon Squeezy; Doorpay receives the signed notification and reconciles the correct saved WooCommerce order. The browser’s success callback is a confirming signal, not independent payment evidence.

This guide uses the supplied Doorpay 1.5.7 documentation. Doorpay is integration software for your own approved account; it does not receive, hold, route or settle customer funds. For catalog and checkout prerequisites, use the Lemon Squeezy integration guide.

These are incoming provider events. Do not create a generic outgoing WooCommerce webhook and expect it to receive a Lemon Squeezy order. Correct direction, endpoint and authentication all matter.

1. Confirm the supported checkout and environment

Before configuring events, confirm Doorpay is installed, operational licensing is configured, the gateway has the correct server API access, and an eligible WooCommerce product/variation is mapped. Lemon Squeezy hosted checkout does not need a Paddle-style browser client token.

The documented Doorpay scope is one mapped virtual product/variation line, fixed one-time pricing, retained quantity and a supported two-decimal currency. Multi-line orders, recurring Lemon Squeezy billing, physical shipping and arbitrary fees are outside that documented scope. Provider capabilities alone do not expand the plugin’s supported carts.

Begin in test mode and retain a clear separation between test and live credentials, product/variant mappings, endpoint configuration and signing secrets. A test success is useful evidence for that configuration, not automatic production readiness.

2. Copy the full endpoint from Doorpay

Open Doorpay’s Setup screen or its Lemon Squeezy WooCommerce settings and copy the complete webhook endpoint shown for the intended environment. The supplied documentation identifies the namespace as /wp-json/doorpay/v1/lemonsqueezy/, but a namespace alone is not the full receiver URL.

Do not guess a suffix, use another integration’s route or paste the WooCommerce thank-you URL. Record the exact displayed URL and installed release in private deployment notes. If the screen differs from the documentation, resolve that difference before proceeding.

Confirm that the actual HTTPS hostname and certificate are correct. If WordPress is installed under a subdirectory or behind a proxy, copying the value supplied by the installation is safer than assembling a path from memory.

3. Create the provider webhook and select order events

In the intended Lemon Squeezy store and mode, open Settings → Webhooks and create a webhook. Enter the copied receiver URL and a strong signing secret, then store the same secret in Doorpay’s matching setting. Keep it private.

The official webhook setup guide describes creating a URL, secret and event selection. Subscribe to the documented Doorpay order events:

Event Purpose in this integration
order_created Start verification/reconciliation of the provider order against the saved WooCommerce attempt.
order_refunded Reconcile provider-originated full or partial refunds through the supported refund flow.

Lemon Squeezy exposes many other event types, including subscription events. Selecting them does not implement unsupported subscription billing, renewal handling or customer-product licensing in Doorpay. Follow your installed release’s documented event list rather than enabling everything to mask a configuration issue.

4. Keep signature verification intact

Lemon Squeezy signs the request body and sends the result in X-Signature. The receiver calculates an HMAC-SHA256 value using the matching signing secret and compares it with the supplied signature. The official signing guide demonstrates this check.

The exact body matters. A proxy, middleware or custom snippet that rewrites JSON before verification can invalidate a genuine request. Doorpay’s documented handler performs raw-body verification; no customer login or browser nonce replaces it.

If a signature fails, compare the configured store mode and secret, check for body transformation and review a redacted error. Do not accept every request, expose the API key or copy a secret into front-end JavaScript. Repair the mismatch and redeliver through supported tools.

5. Separate acceptance from order completion

A Lemon Squeezy signed order event is verified and recorded before queued provider-order matching and WooCommerce access decisions.
Conceptual sequence based on documented behavior, not evidence of an executed signed webhook test.

Keep the route publicly reachable for provider HTTPS POSTs without a cache hit, login redirect, bot challenge or browser verification wall. Narrowly review endpoint-specific security rules while retaining signature authentication.

Lemon Squeezy treats HTTP 200 as successful capture and retries failed delivery. A durable receipt lets longer work proceed outside the request. Doorpay’s documentation describes an accepted-event ledger and asynchronous recovery rather than doing every fulfillment task before acknowledging.

A successful delivery therefore does not prove a WooCommerce order should be completed. Doorpay still checks authoritative provider order data and its association with the saved attempt, including the environment, mapped offer, quantity, currency and expected amounts. A callback or custom order reference cannot substitute for these checks.

6. Verify fulfillment and refund synchronization

When the correct payment is confirmed, WooCommerce applies its own order and download rules. Check the order notes and customer access rather than relying solely on a green provider delivery entry. The WooCommerce downloadable-product guide explains when permissions become available and how the access-after-payment setting affects delivery.

For a provider-originated refund, follow the signed refund event through the same documented reconciliation boundary. A pending refund request is not proof of completed money movement. Partial and full outcomes should match the provider record and the store’s supported refund policy.

Read the Paddle and Lemon Squeezy refund guide before adjusting records. Doorpay’s customer gateway does not automatically issue or revoke license keys for software you sell; a separate supported licensing system owns that behavior.

Troubleshoot the stage that actually failed

Observation Likely area to inspect Next check
No event reaches the destination Store mode, event selection or endpoint Compare the copied receiver URL and provider webhook configuration.
404, 403 or HTML challenge Routing, proxy or endpoint security Inspect the actual POST response, not a logged-in page visit.
Signature failure Wrong secret or altered request body Check matching configuration and raw-body handling.
Provider shows success; order remains pending Queue, API access or order matching Inspect accepted-event state, scheduled work and redacted verification result.
Order paid; no download link WooCommerce file/permission/email layer Inspect product files and authorized access after payment.

Inspect relevant scheduled actions and their logs in WooCommerce’s Status tools. Fix the identified cause before retrying accepted work. Do not delete the event ledger, weaken the amount checks or start a new customer charge simply because fulfillment is delayed.

For payment ambiguity, retain the existing checkout attempt and provider identifiers. The pending-order guide helps separate an unconfirmed payment from a confirmed payment awaiting processing.

A test plan that checks more than an HTTP response

  1. Create an eligible one-time test purchase through the actual WooCommerce/ Doorpay flow.
  2. Compare the provider order with the saved WooCommerce order and environment.
  3. Inspect notification delivery, accepted event and queued reconciliation.
  4. Confirm expected order status and customer permissions.
  5. Exercise a supported test refund and inspect the corresponding store outcome.
  6. Use supported resends to check duplicate protection and document the result.

Lemon Squeezy can simulate order events for test-mode records. Simulation is useful for event-handling checks, but it is not proof that a fresh checkout collected the correct amount or that every refund path works. Test-mode notifications are separate from live-mode notifications.

Keep a result log with environment, time, redacted identifiers and the observed outcome. The payment testing guide provides a broader acceptance checklist. This article describes checks to run; it does not claim they were executed.

Frequently asked questions

Can I paste the documented namespace as the destination?

No. Copy the complete receiver URL shown by Doorpay. The namespace is only a route prefix and does not establish the full endpoint.

Do I need a browser client token?

Not for the documented Lemon Squeezy hosted checkout connection. Its server API key and webhook signing secret have separate jobs; neither belongs in public browser code.

Does order_created mean I can trust any order reference in the payload?

No. Signature validation establishes request authenticity. Doorpay must still match authoritative paid-order data to the saved store attempt and its financial expectations.

Will subscribing to subscription events add recurring billing?

No. The documented Doorpay Lemon Squeezy gateway supports the specified one-time scope. Event subscriptions do not add missing integration logic.

Should I resend an event repeatedly when a download is missing?

First identify whether payment matching, queue processing or WooCommerce permissions failed. Repair that stage, then use the supported recovery route without duplicating side effects.

Sources & scope

Provider references were checked on 24 October 2026. Doorpay-specific behavior is based on the supplied project documentation for release 1.5.7, reviewed 22 October 2026. Illustrations explain the workflow; they are not dashboard screenshots. No live provider-payment test, installed-code verification or performance benchmark is claimed.