Skip to content
FunnelGuard

Fix guide by FunnelsGuard

PayPal button not showing at checkout: how to find and fix it

OPS-211High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

PayPal buttons are not images. Your page loads the PayPal JavaScript SDK from https://www.paypal.com/sdk/js?client-id=..., and that script draws the yellow button inside a container element on your page. If the script never loads, throws an error or has nowhere to draw, you see a blank space or no button at all.

Where the PayPal button breaks
  1. Product pageShopper adds to cart
  2. Checkout pagePage loads normally
  3. PayPal SDKScript blocked or errors
  4. PayPal buttonNothing to click
  5. Order confirmedNever reached via PayPal

The SDK fails to load or render, so the PayPal path ends before payment.

Why it costs you leads or sales

Shoppers who prefer PayPal often do so because they do not want to type card details. If the button is missing, some will pay by card, but many will leave. You also get no error message, because the failure happens in the visitor's browser.

Completed PayPal orders per weekExample numbers
Completed PayPal orders per week (example)Week 1: 40 orders; Week 2: 38 orders; Week 3 (broken): 0 orders; Week 4 (broken): 0 orders01531403800Week 1Week 2Week 3 (broken)Week 4 (broken)orders

Example: PayPal orders drop to zero the week a theme update breaks the button, while card orders barely move, so the loss is easy to miss.

How to check if your site has it

Check the button in your browser
  1. Open checkout in a clean window

    Use a private window with extensions off. Add a product to the cart and go to the page where PayPal should appear (cart, mini cart, product page or checkout).

  2. Open the console

    Press F12 (or Cmd+Option+I on Mac) and open the Console tab. Reload the page and look for errors mentioning paypal, sdk or client-id.

  3. Check the Network tab

    Filter by 'paypal'. The request to /sdk/js should return status 200. A red, blocked or cancelled request points to an ad blocker, firewall, CSP or consent tool.

  4. Inspect the container

    Right-click where the button should be and choose Inspect. An empty div means the SDK did not render. No div at all means the theme or plugin did not output it.

  5. Test other conditions

    Try mobile, another browser, a different country and a different currency. Some causes only show in one of these.

Common causes and what you see
CauseWhat you see
Wrong or missing client IDConsole error about client-id; SDK returns 400
Live vs sandbox mismatchSandbox client ID on the live site, or the reverse
Unsupported currencySDK error mentioning currency
Content Security PolicyConsole says the script was blocked by CSP
Consent or script blockerNo paypal request until cookies are accepted
JavaScript error elsewhereAnother script crashes before PayPal runs
Script minified, deferred or combinedSDK attributes lost, button never draws
Plugin or app disabledNo container in the HTML

How to fix it

Fix the cause you found in the console. The steps below cover the most common ones, then platform specifics.

Fix the most common causes
  1. Use the right client ID

    In the PayPal Developer Dashboard, open Apps & Credentials, switch to Live, and copy the Live client ID into your site. Do not use the sandbox ID on a live store.

  2. Match the currency

    Make sure the store currency is one PayPal supports and that the currency parameter in the SDK URL matches it.

  3. Allow PayPal in your CSP

    If you use a Content Security Policy, allow PayPal for scripts, frames and connections (see the code below).

  4. Exclude PayPal from optimisation

    In any caching or speed plugin, stop it from delaying, combining or removing the PayPal script.

  5. Fix consent rules

    If your consent tool blocks the script, categorise PayPal as necessary for checkout so it loads for everyone who is paying.

Content Security Policy entries PayPal needs (add to your existing policy)text
script-src https://www.paypal.com https://www.sandbox.paypal.com;
frame-src https://www.paypal.com https://www.sandbox.paypal.com;
connect-src https://www.paypal.com https://www.sandbox.paypal.com;
img-src https://www.paypalobjects.com;
Minimal working PayPal button (custom code)html
<div id="paypal-button-container"></div>
<script src="https://www.paypal.com/sdk/js?client-id=YOUR_LIVE_CLIENT_ID&currency=USD"></script>
<script>
  paypal.Buttons({
    createOrder: function (data, actions) {
      return actions.order.create({
        purchase_units: [{ amount: { value: '10.00' } }]
      });
    },
    onApprove: function (data, actions) {
      return actions.order.capture();
    }
  }).render('#paypal-button-container');
</script>
Fix by platform
  1. Check the payment plugin

    In WooCommerce go to WooCommerce > Settings > Payments and open your PayPal method. Confirm it is enabled and connected to your live account, not sandbox.

  2. Exclude from caching and delay JS

    In your caching or optimisation plugin, exclude paypal.com scripts from delay, defer and combine options, then clear the cache.

  3. Test for conflicts

    Switch to a default theme and disable other plugins one at a time on a staging copy. A JavaScript error in another plugin can stop the button.

How to confirm it's fixed

Confirm the fix
  • The PayPal button appears on every page where it should (cart, product, checkout)
  • Console shows no PayPal errors after a hard reload
  • The request to paypal.com/sdk/js returns 200
  • The button shows on mobile and in at least two browsers
  • Clicking the button opens the PayPal window or login
  • A test order through PayPal reaches the confirmation page (use sandbox or a small real order you refund)

How to prevent it happening again

Prevention habits
  • Test the PayPal button after every theme, plugin, app or consent tool change
  • Keep live and sandbox client IDs clearly labelled in your settings
  • Review your CSP whenever you add or change it
  • Keep PayPal excluded from script delay and combine settings
  • Watch PayPal order volume against card orders, and investigate if PayPal drops sharply
  • Run an automatic check on the payment step, not only on the homepage

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your checkout journey on a schedule from the EU or the US and checks that the payment methods you expect, including PayPal, actually appear on the page. If the button is missing, FunnelGuard re-checks from a second region first. If it is still missing, it sends one alert by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.

The test visit is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent). It stops before payment unless your store's test mode is set up, never enters real card details and does not bypass CAPTCHAs or bot protection. The Free plan covers 1 site and 2 journeys with daily checks and no card, and every paid plan has a 3-day free trial.

Questions people ask

Why is my PayPal button not showing on my website?

Usually the PayPal JavaScript SDK failed to load or run. Common causes are a wrong or sandbox client ID, an unsupported currency, a Content Security Policy blocking paypal.com, a consent tool or speed plugin delaying the script, or a JavaScript error elsewhere on the page. Check the browser console for the exact error.

Why is the PayPal button not showing in WooCommerce?

Check that the PayPal method is enabled and connected to your live account under WooCommerce > Settings > Payments. Then exclude paypal.com scripts from caching, delay and combine options, and test for plugin or theme conflicts on a staging copy.

Why is the PayPal button not showing on Shopify?

Check that PayPal is activated in Settings > Payments and the account is connected without restrictions. Make sure your currency or market is supported, and disable recent apps or custom checkout code that load a conflicting PayPal script.

How do I see the PayPal error in my browser?

Open the checkout page, press F12 and choose the Console tab, then reload. Look for messages mentioning paypal, sdk or client-id. The Network tab, filtered by 'paypal', shows whether the /sdk/js request succeeded.

Can an ad blocker hide the PayPal button?

Yes, some ad blockers and privacy tools block PayPal scripts. You cannot control a visitor's extensions, so offer another payment option such as cards so those shoppers can still complete their order.

Does a wrong client ID stop the PayPal button from loading?

Yes. A missing, mistyped or sandbox client ID on a live site makes the SDK return an error, and no button is drawn. Copy the Live client ID from the PayPal Developer Dashboard under Apps & Credentials.

How can I be alerted when my PayPal button disappears?

Use a synthetic monitor that runs your checkout on a schedule and checks that PayPal appears. FunnelGuard does this: it re-checks from a second region and sends one alert with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: payment_methods.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.