I've tried few approaches to disable Paypal post-robot debug messages on my browser's console but none seemed to work.
The reason these messages can be quite annoying is that they make debugging the browser harder because there is plenty of them, hiding some other console warnings.
The console logs are coming from Paypal checkout.js file which is loaded as external resource on our domain.
Only thing I have found about debugging on Paypal developers page is here:
https://developer.paypal.com/docs/classic/express-checkout/in-context/javascript_advanced_settings/?mark=debug
I have tried indeed to invert the condition like document.cookie="PPDEBUG=false"
. However, I'm still seeing the debug messaging coming through because this should be set on a cookie on the paypal sandbox domain.
Example of the console messages:
> ppxo_current_protocol_https Object {timestamp: 148465111111111,
> windowID: "4250cccccc", pageID: "7bd8cccccc", host:
> "www.project.local", path:
> "/projectlocal/fr/checkout/single"…} checkout.js:4617
> ppxo_setup_production Object {timestamp: 148465111111111, windowID:
> "4250cccccc", pageID: "7bd8cccccc", host: "www.project.local",
> path: "/projectlocal/fr/checkout/single"…}
Here another link related: https://github.com/krakenjs/post-robot
If you're using chrome, you can set up regex filters
^(?!.*?(ppxo|xc_|post-robot))
Loading checkout.js
with a log level set to 'error' will prevent the 'debug' and 'info' level messages:
<script src="https://www.paypalobjects.com/api/checkout.js" data-log-level="error"></script>
When looking at the JS code from checkout.js, this seems to be the only option:
logLevel: currentScript.getAttribute("data-log-level"),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With