Skip to content

WordPress Form PayPal Payment Stuck Pending: Fix It

Fix a WordPress form whose PayPal payment shows Completed in PayPal but stays Pending in WPForms or Gravity Forms. You will find where the callback stopped, restore it, and recover the payments that were missed.

A customer paid through your WordPress form and PayPal’s Activity page shows the payment as Completed, yet the entry in WPForms or Gravity Forms still says Pending, or shows no payment at all. This page is for the person who has to find out why and make the money and the orders match again. The cause is almost always the same: PayPal tried to tell your site about the payment, and that message, called a callback, never got through. The fix is to find where the callback stopped, repair that one point, and then resend or reconcile the payments that were missed. The usual blockers are a firewall, a security plugin, maintenance mode, a wrong site address after a move, or a form still on PayPal’s retired Standard mode.

What you’ll accomplish

  • Know which PayPal mode your form uses, legacy Standard with IPN or the newer REST mode with webhooks, because the two fail and recover differently.
  • Read PayPal’s delivery log and your server’s access log to see the exact response your site gave PayPal.
  • Restore the callback path through Cloudflare, a security plugin or a stuck maintenance page.
  • Move a form off the deprecated PayPal Standard mode before PayPal stops processing it.
  • Recover every missed payment, by resending the events from PayPal or by reconciling against a PayPal export.

Prerequisites

  • Admin access to WordPress and to the PayPal business account that receives the money. For REST mode you also need the PayPal Developer Dashboard, which uses the same login.
  • A terminal on the host with WP-CLI (wp) installed, and read access to the web server’s access log. On cPanel it is under Metrics » Raw Access; on a plain Linux host it is usually /var/log/apache2/access.log or /var/log/nginx/access.log.
  • The date, amount and PayPal transaction ID of one affected payment. Everything below starts from that one example.
  • Steps 5 and 7 change live settings and make a small real payment. Tell whoever handles orders before you start.

The menu paths below are from WPForms and Gravity Forms. Other form plugins with a PayPal addon follow the same pattern under different menu names.

How it works

When a visitor pays, the money moves between the visitor and PayPal. WordPress is not part of that step. What marks the entry as paid is a second request that PayPal sends to your site afterwards. That callback comes in one of two forms, depending on the plugin mode.

IPN, Instant Payment Notification, is the callback used by PayPal Standard, the older mode that sends the visitor to a PayPal page and back. PayPal POSTs the transaction details to a listener URL on your site and resends until the listener acknowledges it, for up to 4 days. PayPal documents IPN under its legacy NVP/SOAP APIs. The Gravity Forms PayPal Payments Standard add-on is deprecated: PayPal ends support for Website Payments Standard by January 2026 and provides limited security updates until January 2027. After that, payments through it fail. WPForms’ PayPal Standard addon is the same generation.

REST webhooks are the callback used by the newer modes, WPForms PayPal Commerce and Gravity Forms PayPal Checkout. These show PayPal’s buttons on your own page, and PayPal sends an event to a webhook URL the plugin registered when you connected. If your site answers anything other than a 2xx status, PayPal retries up to 25 times over 3 days, then marks the event Failed. Failed events stay listed in the Webhook Events dashboard of the Developer Dashboard, where you can resend them. Webhooks belong to a PayPal REST app, and a sandbox app (PayPal’s test environment) is a separate app from a live one, with its own client ID and secret.

Request path from the visitor through PayPal, then either an IPN message or a REST webhook event, both blocked at the site's edge by a firewall, security plugin, maintenance 503, wrong URL or expired certificate, leaving the entry stuck at Pending; the unblocked path reaches the form plugin and marks the entry Paid

Both callbacks fail at the same place: the edge of your site, before the plugin runs. A web application firewall (WAF, a filter that blocks requests that look like attacks) or a security plugin answers 403 to a POST from an address it does not know. A stuck maintenance file answers 503 to everything. A site moved to a new domain or to HTTPS still has its old listener URL registered at PayPal, so the request lands on a 404 or a redirect. An expired certificate stops PayPal before any HTTP status at all. In every case PayPal keeps the money, retries for days, then gives up, and the entry stays Pending. That is why the diagnosis starts on PayPal’s side.

Step-by-step

  1. Identify which PayPal mode the form uses. List the active plugins and look for the PayPal one:

    wp plugin list --status=active --fields=title,version | grep -i paypal

    Example output:

    | WPForms PayPal Standard                       | 1.8.0   |

    A title with “Standard” means IPN mode. “PayPal Commerce” (WPForms) or “PayPal Checkout” (Gravity Forms) means REST mode with webhooks. Confirm on the settings screen. WPForms » Settings » Payments shows either a connected PayPal Commerce account or the Standard fields. Gravity Forms » Forms » Settings » PayPal Checkout shows the connected merchant ID and whether the connection is Live or Sandbox. Sandbox on a public site is cause four: real customers cannot pay through a sandbox app, and any webhook subscribed there belongs to the sandbox, not to your live account.

  2. Read PayPal’s side. Log in to the PayPal business account, open Activity, find the payment by date and amount, and confirm it says Completed. Then open the delivery log for your mode. For IPN, open IPN History in the account settings; it lists every message sent, its delivery status, and the response your site returned. For REST webhooks, open the Developer Dashboard, pick your live app, and open the Webhook Events dashboard; each event shows its delivery attempts and the response code. Note the exact URL PayPal called and the status it got back. A 403 points at a firewall or security plugin. A 503 points at maintenance mode or an overloaded PHP pool. A 404 or 301 points at a listener URL that no longer matches the site. A connection or TLS error points at the certificate. No events at all means no webhook is registered for this app, which step 5 fixes.

  3. Read WordPress’s side. Check the plugin’s own record first. In WPForms » Payments, Overview tab, look for the payment by date; in Gravity Forms, open the entry and read its payment details. If the plugin logged nothing, the callback never reached PHP. Confirm that in the access log, where PayPal’s POST and your response share one line. Take the delivery time from step 2 and search that minute:

    grep '23/Oct/2026:16:41' /var/log/apache2/access.log | grep '"POST '

    Example output (the path is whatever your plugin registered; this one is a stand-in):

    203.0.113.45 - - [23/Oct/2026:16:41:08 -0400] "POST /?paypal-listener=example HTTP/1.1" 403 199

    The path should match the listener URL PayPal showed you; the number after HTTP/1.1" is the status your site returned. 403 with a tiny byte count is a block at the edge. 503 is maintenance mode or an exhausted PHP pool; fixing a WordPress site stuck in maintenance covers the first. 404 means the listener URL points at the wrong path or host. 500 means PHP crashed inside the listener, so read the PHP error log for that minute:

    grep -iE 'paypal|webhook' /home/examplco/public_html/error_log | tail -5

    A PHP Fatal error: Uncaught Error line with a path under wp-content/plugins/ means the addon is out of step with the core plugin; update both. If that minute holds no POST to the listener at all, the request never reached the server, so the block is in front of it, at Cloudflare or the host’s firewall. If the log shows 200 and the plugin still has no record, the plugin rejected the message, usually because the webhook belongs to a different app than the one connected; step 5 reconnects it.

  4. Fix the delivery path. Apply the fix that matches what steps 2 and 3 showed.

    For a 403 from Cloudflare, open Security » Events, find the blocked POST to your listener URL, and read which rule fired. Create a WAF exception scoped to that path only; tracing a Cloudflare WAF false positive to its rule walks through that screen. For a 403 from a security plugin, open its blocked-requests log (Wordfence calls it Live Traffic) and allowlist the listener path there. For ModSecurity on cPanel, the Apache error log names the rule:

    [client 203.0.113.45] ModSecurity: Access denied with code 403 (phase 2). ... [id "949110"] [msg "Inbound Anomaly Score Exceeded"]

    Disable that rule ID for the listener path, not for the whole site.

    For a 503, remove the maintenance file or the plugin that took the site offline. If the 503 comes and goes under load, raise the PHP-FPM worker limit.

    For a 404 or redirect after a domain or HTTPS change, confirm the site address first:

    wp option get siteurl
    wp option get home

    Both should print the current https:// address. If they do, the stale URL is on PayPal’s side. In REST mode, disconnect and reconnect the plugin in step 5 so it registers a fresh webhook. In Standard mode, set the notification URL in the PayPal account’s IPN settings to the URL your plugin shows.

    For a certificate problem, check what PayPal sees:

    curl -sIv https://example.com/ -o /dev/null 2>&1 | grep -E '^\* +(subject|expire date|SSL certificate)'

    Example output:

    *  subject: CN=example.com
    *  expire date: Jan 12 23:59:59 2027 GMT
    * SSL certificate verify ok.

    An expired date or SSL certificate problem means renewal failed. Fix AutoSSL or your certificate provider before anything else, because PayPal cannot even reach the 403 stage.

  5. Move from Standard to the REST mode. Do this even if the IPN path works again, because Standard has an end date. In WPForms, deactivate the PayPal Standard addon first, since both addons cannot run at the same time. Then open WPForms » Settings » Payments, scroll to PayPal Commerce, click Connect with PayPal Commerce, and log in with the live business account. On WPForms 1.10.0 or newer the webhook is registered automatically when you connect; on older versions follow WPForms’ guide to setting up PayPal Commerce webhooks by hand. Then replace the PayPal Standard field in each payment form with the PayPal Commerce field. In Gravity Forms, open Forms » Settings » PayPal Checkout, choose Live, click Connect with PayPal, and sign in. The webhook is created automatically in most cases, and the webhook URL field on that page is for validation only. Then edit each form’s PayPal feed to use PayPal Checkout. Leave Test Mode off, and check that the merchant ID shown is the live account. If WPForms answers “Your PayPal Commerce connection is not valid. Please reconnect your PayPal Commerce account.”, PayPal Complete Payments is not enabled on the account. Ask PayPal support to enable it, then reconnect.

  6. Recover the missed payments. In REST mode, go back to the Webhook Events dashboard, filter for Failed, and resend each event. With the path fixed, the plugin processes it and the entry updates on its own. In Standard mode, PayPal only retries IPN for 4 days, so older messages are gone from PayPal’s queue. For those, and for any payment taken while the site was on a sandbox app, reconcile by hand. Download the account’s activity report from PayPal for the period, match each transaction ID and amount against the form entries by date and payer email, and record the transaction ID in each matched entry’s notes. Mark the entry paid if your plugin lets you edit the payment status; if not, the note is your record, because the plugin only changes status on a callback it received itself. Email those customers their confirmation if the form’s own confirmation never went out.

  7. Test end to end with a small live payment. Submit the form yourself with the smallest amount it allows, using a real card or PayPal balance. Within a minute, the entry should move to the paid state without anyone touching it, and the event should appear in the Webhook Events dashboard with a 2xx response. Then refund that payment from the PayPal Activity page. The refund arrives as its own webhook event, which is a free second check of the path.

Validate it works

The live test from step 7 is the proof. Confirm all four of these:

  • PayPal Activity shows the test payment as Completed, then Refunded.

  • The Webhook Events dashboard (or IPN History) shows each delivery for the test with a 2xx status and no retries.

  • The plugin’s payments screen shows the test entry as paid, then refunded, with no manual change.

  • The access log shows the POST with a 200:

    grep '"POST ' /var/log/apache2/access.log | tail -3
    203.0.113.45 - - [25/Oct/2026:10:07:51 -0400] "POST /?paypal-listener=example HTTP/1.1" 200 0

Check the Webhook Events dashboard again a week later. A block that only fires under some conditions, such as a rate limit, shows up there as a fresh Failed event.

Troubleshooting

Webhook Events shows every delivery as 2xx but entries still stay Pending. The site answers, but the plugin does not accept the message. The usual cause is two webhooks pointing at your site, one left over from an earlier connection or a different app. Each app lists its own webhooks under Apps & Credentials in the Developer Dashboard. Delete any that do not belong to the app the plugin is connected to, then disconnect and reconnect the plugin once.

It worked for months and stopped after a security plugin update or a Cloudflare change. Nothing changed at PayPal; a new rule now matches PayPal’s POST. Security Events or the plugin’s block log shows the first blocked request within a minute of the change. Add the scoped exception from step 4 and resend the Failed events.

Sandbox payments worked, real ones never arrive. The plugin is still connected to a sandbox app, or Test Mode is on. Sandbox and live are separate apps with separate webhooks; connecting in Live mode registers a new webhook for the live app. Compare the merchant ID on the settings page with the live PayPal account.

IPN History shows the message undelivered for days with a 301 response. The listener URL registered at PayPal is http:// and the site now forces HTTPS. A redirect is not the acknowledgement PayPal waits for, so it keeps retrying. Update the notification URL to https://, or better, finish step 5 and stop relying on IPN.

When this is the wrong approach

If the payments come from a WooCommerce checkout rather than a form, stop here. WooCommerce has its own order states and its own gateway, the WooCommerce PayPal Payments plugin, and marking a form entry paid does nothing to the order. Use that plugin’s connection screen and WooCommerce » Status » Logs instead.

If the symptom is with Stripe rather than PayPal, the shape is similar but the screens and signature rules differ; see fixing WordPress form Stripe payments.

If someone wrote a custom listener for your theme or a bespoke plugin, check whether it verifies the message before trusting it. A PayPal webhook carries a transmission signature, and the listener should either run the CRC32 check or post the message to PayPal’s verify endpoint. A listener that marks entries paid on any POST can be fooled by anyone who finds the URL. Fix that before you allowlist it in the firewall.

PayPal’s webhooks reference documents the retry policy and the signature checks, and Gravity Forms’ page on the PayPal Payments Standard add-on states the Standard end dates.

Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.