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.
- Product pageShopper adds to cart
- Checkout pagePage loads normally
- PayPal SDKScript blocked or errors
- PayPal buttonNothing to click
- 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.
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
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).
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.
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.
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.
Test other conditions
Try mobile, another browser, a different country and a different currency. Some causes only show in one of these.
| Cause | What you see |
|---|---|
| Wrong or missing client ID | Console error about client-id; SDK returns 400 |
| Live vs sandbox mismatch | Sandbox client ID on the live site, or the reverse |
| Unsupported currency | SDK error mentioning currency |
| Content Security Policy | Console says the script was blocked by CSP |
| Consent or script blocker | No paypal request until cookies are accepted |
| JavaScript error elsewhere | Another script crashes before PayPal runs |
| Script minified, deferred or combined | SDK attributes lost, button never draws |
| Plugin or app disabled | No 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.
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.
Match the currency
Make sure the store currency is one PayPal supports and that the
currencyparameter in the SDK URL matches it.Allow PayPal in your CSP
If you use a Content Security Policy, allow PayPal for scripts, frames and connections (see the code below).
Exclude PayPal from optimisation
In any caching or speed plugin, stop it from delaying, combining or removing the PayPal script.
Fix consent rules
If your consent tool blocks the script, categorise PayPal as necessary for checkout so it loads for everyone who is paying.
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;<div id="paypal-button-container"></div>
<script src="https://www.paypal.com/sdk/js?client-id=YOUR_LIVE_CLIENT_ID¤cy=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>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.
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.
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.
Check the PayPal payment method
In Settings > Payments, confirm PayPal is activated and the account is connected and not in a restricted state.
Check the currency and markets
Confirm the store or market currency is supported by PayPal. Unsupported currencies hide the method.
Check custom code
If you use a custom checkout or cart drawer, look for apps or theme code that load their own PayPal script and conflict with Shopify's. Disable recent apps to test.
Review tags that touch checkout
In Preview mode on the checkout page, look for custom HTML tags that change the DOM or block scripts. Pause recent changes and retest.
Do not load the SDK twice
If a tag also loads the PayPal SDK, remove the duplicate. Two SDK loads with different settings cause errors.
Check the embed
Open the page with the PayPal embed or the footer code in Project settings > Custom code. Confirm the SDK script and the container div both exist.
Publish and retest
Embeds only run on the published site, not in the Designer preview. Publish and test the live URL.
Check the payment integration
In Payments > Integrations, confirm PayPal is connected in live mode, then test the order form or checkout page you use.
Check custom code blocks
If you added PayPal code in a custom code element, confirm the container and script are on the same page and the client ID is live.
Check accepted payments
In Dashboard > Settings > Accept Payments, confirm PayPal is connected and enabled.
Check currency
Make sure your site currency is supported by PayPal, then test the live checkout.
Check the connection
In Commerce > Payments, confirm PayPal is connected. Reconnect it if it shows an error.
Check the currency
PayPal only appears for currencies it supports. Confirm your store currency, then test checkout.
Fix the SDK URL
Use your live client ID and a valid currency in the script URL, and do not add async or defer unless your code waits for the script to load.
Make sure the container exists
The element passed to render() must be in the DOM when render runs. Call it after the page or component has mounted.
How to confirm it's fixed
- 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
- 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.
Related issues
- OPS-208Payment gateway outage (Stripe, PayPal, Square)Fix guide
- OPS-209Payment gateway keys in test mode on live siteFix guide
- OPS-210Live keys on staging taking real moneyFix guide
- OPS-212Apple Pay domain verification file missingFix guide
- OPS-222reCAPTCHA/hCaptcha service outageFix guide
- OPS-226Tax/shipping rate API failing at checkoutFix guide