Error: "A boolean is being passed as a fourth parameter to window.open"

tbebekis
Contributor
Contributor

The two samples, server and client, found in https://developer.paypal.com/demo/checkout end up in an exception saying:

"A boolean is being passed as a fourth parameter to window.open. This is not used and may cause an exception in a future release."

 

And two warnings:

1. Indicate whether a cookie is intended to be set in a cross-site context by specifying its SameSite attribute

2. Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute

 

Is there any workaround?

  

Steps to reproduce

1. copy the source found in https://developer.paypal.com/demo/checkout/#/pattern/client

2. paste it to a text file and save it as HTML

3. set a proper ClientId in the source, i.e. https://www.paypal.com/sdk/js?client-id=PUT_YOUR_CLIENT_ID_HERE&currency=USD

4. open the HTML file with a browser and click the button

 

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.