Skip to content

WordPress WooCommerce PayPal — common issues and fixes

WordPress WooCommerce PayPal Standard vs PayPal Payments — IPN deprecation, webhook routing, currency mismatch, and the orders-not-completing problem. The diagnosis tree.

PayPal in WordPress WooCommerce is two different things: the legacy “PayPal Standard” gateway built into WooCommerce core (deprecated since 5.5) and the newer “PayPal Payments” extension (woocommerce-paypal-payments). Most stores we audit on takeover are running one of them in a half-broken state — orders complete in PayPal but stay pending in WooCommerce, or the gateway is set up against the sandbox account that someone tested with in 2022. The fixes are mostly mechanical once you identify which version and what is broken.

What’s happening

PayPal Standard uses IPN (Instant Payment Notification) — PayPal POSTs to a URL on the store after a payment, the store validates by POSTing back to PayPal, and the order is updated. This is the old flow. WooCommerce deprecated it; PayPal still supports it but flags it as legacy.

PayPal Payments (the newer extension) uses webhooks signed with PayPal’s HMAC keys, plus the Smart Buttons SDK on the client side. The integration is cleaner but has its own failure modes — webhook routing, currency mismatch between PayPal and WooCommerce, and the SCA flow for European cards via PayPal’s Hosted Card Fields.

The five most common tickets:

  • Orders complete in PayPal but stay pending in WooCommerce. IPN or webhook delivery is failing. The customer paid; the store thinks they did not.
  • Currency mismatch. WooCommerce store currency is CAD; the PayPal account is USD-only. The transaction succeeds, but PayPal converts and the totals do not match the order. WooCommerce flags this and may mark the order on-hold.
  • Sandbox credentials in production. Someone tested with PayPal sandbox, never switched to live. Payments fail silently or land in the sandbox.
  • PayPal Standard still in use after the deprecation. The plugin is removed from new installs but still functional on legacy stores. Existing IPNs may stop being delivered if PayPal updates the IPN-receiving cert.
  • Smart Buttons not rendering. Usually a missing currency_code or country_code on the SDK load.

How to verify

# Which PayPal plugin is active?
wp plugin list --status=active --format=csv | grep -i paypal

# Settings for PayPal Standard (legacy)
wp db query "SELECT option_value FROM wp_options WHERE option_name='woocommerce_paypal_settings'"

# Settings for PayPal Payments (modern)
wp db query "SELECT option_value FROM wp_options WHERE option_name='woocommerce-ppcp-settings'"

# Sandbox vs live — look for sandbox=1 or environment=sandbox in the above
# Confirm the merchant ID matches what PayPal shows for the live account

# Recent PayPal-paid orders that are stuck pending
wp db query "SELECT p.ID, p.post_status, p.post_date
  FROM wp_posts p
  JOIN wp_postmeta pm ON p.ID=pm.post_id
  WHERE p.post_type='shop_order'
    AND p.post_status IN ('wc-pending','wc-on-hold')
    AND pm.meta_key='_payment_method' AND pm.meta_value LIKE 'paypal%'
    AND p.post_date > NOW() - INTERVAL 7 DAY
  ORDER BY p.post_date DESC"

# IPN handler log (PayPal Standard)
tail -f wp-content/uploads/wc-logs/paypal-*.log

# PayPal Payments log
tail -f wp-content/uploads/wc-logs/woocommerce-paypal-payments-*.log

# Webhook endpoint reachable?
curl -i 'https://example.com/?wc-api=PayPal_Payments_Webhook' -X POST
# Expected: 400 with "Missing PayPal signature" — endpoint is reachable.

# IPN endpoint reachable?
curl -i 'https://example.com/?wc-api=WC_Gateway_Paypal' -X POST
# Expected: 200 with body "INVALID" — endpoint is reachable.

The PayPal Activity dashboard (Activity → All Transactions) is the authoritative source. If PayPal shows the payment as completed and WooCommerce shows the order as pending, the gap is in the IPN or webhook layer — not in the payment itself.

The fix

  1. Migrate off PayPal Standard. If you are still on the legacy gateway, plan the migration to PayPal Payments. Existing subscriptions and pending IPNs need to be drained before disabling Standard. Install PayPal Payments alongside, configure it against the same merchant ID, then disable Standard once new transactions are flowing through Payments cleanly.
  2. Re-register the webhook (PayPal Payments). In the WooCommerce → Settings → Payments → PayPal admin, the webhook should be auto-registered. If it is missing, click “Register webhook” — the plugin will POST to the PayPal REST API and add the endpoint. Confirm in the PayPal developer dashboard (Apps & Credentials → REST API → Webhooks) that the URL is https://example.com/?wc-api=PayPal_Payments_Webhook.
  3. Verify IPN URL (PayPal Standard). In your PayPal merchant settings, IPN must point to https://example.com/?wc-api=WC_Gateway_Paypal. The dashboard buries this under Account Settings → Notifications → Instant Payment Notifications. If absent or wrong, fix it; PayPal will start delivering IPNs from the next transaction.
  4. Confirm currency match. Set WooCommerce store currency to a currency the PayPal account holds (or enable PayPal multi-currency). For Canadian stores, the PayPal account should be a CAD-primary account or have CAD as a held balance. WooCommerce → Settings → General → Currency.
  5. Pull live credentials from PayPal, not from the previous operator’s notes. Apps & Credentials → REST API → app → Live → Client ID and Secret. Paste into the WooCommerce PayPal Payments settings, save, send a test transaction.
  6. Manually reconcile stuck-pending orders. For each order that PayPal shows as completed but WooCommerce shows as pending:
    wp wc shop_order update <order_id> --status=completed --user=1
    Then investigate why the IPN / webhook did not deliver. Do not bulk-update without checking each one against PayPal Activity first.

For the WooCommerce gateway plumbing more broadly, the existing Stripe and Square articles share the diagnosis approach. Pair with enterprise WordPress hosting operations for the gateway-fallback runbook.


Stack Harbor operates WordPress WooCommerce PayPal stores end-to-end under enterprise WordPress hosting — the webhook routing, the IPN-to-Payments migration, and the currency posture. If you have a stack of PayPal-paid orders that WooCommerce never completed, we can reconcile them and fix the root cause.