Hi @adamkheckler ,
I’m experiencing something similar… though unclear if it’s the same cause. The buttons are not showing on the single product page.
I’m seeing “Uncaught TypeError: paypal is undefined” in my console, here’s a screenshot:
https://share.getcloudapp.com/RBu4mmdd
This appears to be the line in the source where the paypal
variable is defined.
If I enable the legacy checkout JS by filtering
add_filter( 'woocommerce_paypal_express_checkout_use_legacy_checkout_js', '__return_true' );
The paypal
variable is defined and the button appears.
<insert debugging time>
In my case, the PayPal Checkout SDK script was not loading! The reason for this is that my dev sites have a time attribute added to all scripts/styles to prevent caching while I am working.
@delirii as Adam mentioned, you need to check your browser console. You can also try to view source and look for the PayPal SDK script… looks like this:
https://share.getcloudapp.com/rRukOO8j
And then click on it. In my case, I saw this error notice which told me it wasn’t loading and why:
throw new Error(“SDK Validation error: ‘Disallowed query param: time'” );
/* Original Error:
Disallowed query param: time (debug id: 12b71fcb72246)
*/
Good luck!