onShippingChange make paypal guest checkout opening on separate windows

daviddk8
Contributor
Contributor

When clicking on paypal button an embedded form is opening on my page but if I uncomment the code with onShippingChange

},
// This is opening the Paypal guest checkout on separate window !!!
/*onShippingChange: (data, actions) => {
return basket.CalcShipping(data.orderID, data.shipping_address);
},*/
onError: (err) => {
changeInputEnable(restoreInputEnableState);
alert(err);
},

 

Embedded paypal is what I want as the picture below :

daviddk8_1-1675849306128.png

But with onshippingchange it open in a separate windows like the image below:

 

daviddk8_0-1675849987499.png

 

 

I can make it work with both solution but I didn't not find the explanation of this behavior in the documentation.

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.