I am actually having an issue on two sites. I am setting up both sites, one for myself and another for a client with Payment Gateway for PayPal by Easy Payments. I have one site all set up, same server, same settings, same cache and it seems to work just fine. The only real difference on that site is it’s an older installation. On these two new sites we are not seeing the plugin displaying anywhere at checkout, the express checkout, or products (I have this turned off atm). Everything is at the most up-to-date as of the writing of this ticket. I am not sure what else to report?
Thank you for reaching out, and for the detailed description — that really helps. Since the older site works fine with the same settings, the issue is almost certainly something specific to the setup of the two new sites rather than a general plugin problem. Could you please check the following on the new sites?
PayPal connection – Go to WooCommerce → Settings → Payments → PayPal and confirm the plugin is fully connected to your PayPal account (Client ID and Secret saved). The buttons and the checkout option will not display at all until the connection is complete — this is the most common cause on freshly set-up sites.
Store currency – Confirm the store currency (WooCommerce → Settings → General) is one supported by PayPal. An unsupported currency will hide the gateway everywhere.
Caching and JS optimization – Since the buttons are rendered by PayPal’s JavaScript SDK, please purge all caches (page cache, Cloudflare, etc.) and, if you use an optimization plugin (WP Rocket, Autoptimize, LiteSpeed, etc.), temporarily exclude the PayPal scripts from minify/defer/delay-JS and test again.
Browser console – Open the checkout page, press F12 → Console tab, and let us know if you see any red JavaScript errors. That usually points straight to the culprit.
If everything above checks out and the options still don’t appear, please share your WooCommerce → Status → System Status Report (“Get system report” → “Copy for support”) along with any console errors, and we’ll dig deeper right away.
Hi Thank you for you speedy reply. Here’s what I get:
PayPal connection – Go to WooCommerce → Settings → Payments → PayPal All Connected
Store currency – Confirm the store currency (WooCommerce → Settings → General) All good, US currency. Not new shops, just switching to this plugin.
Caching and JS optimization – Can you please provide a list of the scripts you’re using?
Browser console – Open the checkout page, press F12 → Console tab Oh that was an adventure! Here’s the simple one from the site that DOES NOT work:
ppcp-paypal-checkout…c.js?ver=9.2.9:2858 Uncaught ReferenceError: jQuery is not defined at ppcp-paypal-checkout…js?ver=9.2.9:2858:4 (anonymous) @ ppcp-paypal-checkout…c.js?ver=9.2.9:2858
ppcp-checkout.js?ver=9.2.9:1 Uncaught ReferenceError: wp is not defined at ppcp-checkout.js?ver=9.2.9:1:23 (anonymous) @ ppcp-checkout.js?ver=9.2.9:1
ppcp-cc.js?ver=9.2.9:1 Uncaught ReferenceError: wp is not defined: at ppcp-cc.js?ver=9.2.9:1:23
Violation] Permissions policy violation: unload is not allowed in this document. nn @ dfp-fastlane.js:1 (anonymous) @ dfp-fastlane.js:1 window.dfpFastLane @ dfp-fastlane.js:1 initializeDFPFastlane @ portal?uat=eyJraWQiO…400_mtu6nte6mzk:222 (anonymous) @ portal?uat=eyJraWQiO…400_mtu6nte6mzk:236
The one that DOES work has 139 errors that display, all related to the plugin.
This reply was modified 1 month, 2 weeks ago by Jason Houge. Reason: screenshot
Of course! The easiest way is to add these keywords to your optimizer’s exclusion lists (for its combine/minify, defer, and “delay JavaScript execution” features) — each keyword matches everything relevant, so you don’t need to list files one by one:
jquery — jQuery itself (also covers jquery-migrate); it must never be delayed
wp-includes — the WordPress core libraries our checkout blocks need (wp-element, react, wp-data, etc.)
woo-paypal-gateway — every script our plugin ships
paypal.com — the PayPal JS SDK
pay.google.com and applepay.cdn-apple.com — only if you use the Google Pay / Apple Pay buttons
If your optimizer wants individual filenames instead, ours are:
ppcp-paypal-checkout-for-woocommerce-public.js (the one from your console error)
ppcp-checkout.js and ppcp-cc.js (block checkout)
wpg-ppcp-fastlane.js, ppcp-minicart.js, and the pay-later-messaging/*.js files
Some good news as well: we’ve just finished work on version 9.3.0, which handles this whole class of problem automatically — the plugin now registers its own exclusions with WP Rocket, LiteSpeed, Autoptimize, SiteGround Optimizer, W3 Total Cache, Perfmatters and Cloudflare Rocket Loader, and its scripts now wait for jQuery/WordPress to arrive instead of failing when an optimizer loads things out of order. Once you see the 9.3.0 update in your dashboard, please install it — you should then be able to remove the manual exclusions (keeping the jquery one is still wise with aggressive “delay JS” settings).
Please let us know how it goes — and thank you again for the excellent console report, it’s exactly what let us pin this down and fix it for everyone.