Quantcast
Channel: Active questions tagged paypal - Stack Overflow
Viewing all articles
Browse latest Browse all 518

Google lighthouse report complains about deprecated PayPal SDK javascript

$
0
0

We've recently run Google lighthouse for one of our sites and noticed that it is complaining about a deprecated API, namely PayPal's SDK JS which we use to display their payment buttons.

Screenshot of Google Lighthouse warning of deprecated PayPal API

I probably haven't had enough coffee today but I can't see an updated version / URL of this javascript file and we're not hosting it locally, instead getting it directly from source.

https://www.paypal.com/sdk/js?currency=GBP&commit=false&components=messages,buttons,funding-eligibility&enable-funding=paylater&disable-funding=card,credit&client-id=xxx

Any suggestions as to what we're doing wrong or is it a false positive? I feel I'm missing something really obvious!

Edit : Google are warning that the deprecated JS (unloadhandler) will be prevented from running by the end of Q1 2025.

Warning from Google that JS will be prevented from working between Q3 2024 and Q1 2025


Viewing all articles
Browse latest Browse all 518

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>