mozilla / contain-facebook

Facebook Container isolates your Facebook activity from the rest of your web activity in order to prevent Facebook from tracking you outside of the Facebook website via third party cookies.
Mozilla Public License 2.0
979 stars 176 forks source link

Paypal checkout breaks when site is allowed into Facebook Container #646

Open aplekhov opened 4 years ago

aplekhov commented 4 years ago

Facebook Container Version: 2.1.1 Operating System + Version: MacOS 10.13.6 Firefox Version: 76.0.1 (64-bit)

Actual behavior

Using PayPal Smart Payment Buttons, click on PayPal as the payment method. The black overlay that is usually there disappears and the PayPal login dialog pops up. You can login as usual but when you are presented with the payment confirmation screen and you click to complete the payment using the button at the bottom, you are redirected back to the payment confirmation screen and the payment never goes through.

Expected behavior

Using PayPal Smart Payment Buttons, click on PayPal as the payment method. A black overlay appears underneath the PayPal login dialog that appears. After you login you are presented with the payment confirmation screen and once you click to complete the payment using the button at the bottom, the window should disappear and the payment should be processed.

Steps to reproduce

  1. Install the paypal checkout demo app here: https://github.com/paypal/paypal-checkout-demo
  2. Run and open the demo webapp and allow the page into Facebook Container
  3. Under 'Try the Button' click on Paypal. You should notice that the black overlay is missing when the login dialog appears. If you login with a paypal sandbox account email and password, and try to complete the payment you will see that it will keep bringing you back to the payment confirmation screen.

Notes

aplekhov commented 4 years ago

Strangely enough I can't duplicate this on paypal's hosted version of the demo site: https://developer.paypal.com/demo/checkout/#/pattern/client

However, we are seeing the same behavior on our own site so it can't be an issue of localhost or http vs https.

groovecoder commented 4 years ago

Do you mind sharing your own site? Might be something else on the page.

aspymid commented 3 years ago

I have just created the same issue. The Paypal button works everywhere except on Firefox when the Facebook container is active and the site is allowed. I don't know if this is relevant but the button is not a hosted on Paypal. I will gladly share the site name in private.