Hi there, I have connected PayPal to my merchant account/payment gateway Braintree in Magento 2. When proceeding with PayPal payment option, it is failing to connect to PayPal giving me this message: "Sorry we cannot connect to PayPal. Please try again in a few minutes" When i reached out to Braintree, i was given the below explanation: Magento is using a custom integration of PayPal - the following code is lifted directly from your checkout page: config.paypal = { container: 'paypal-container', singleUse: !isActiveVaultEnabler, headless: true, amount: this.grandTotalAmount, currency: totals['base_currency_code'], locale: this.getLocale(), enableShippingAddress: true This is designed to be combined with paypal.initAuthFlow() method, via an on-click action/event listener, to prevent pop-up blockers from interfering with the launch of the window. However, Magento is attempting to launch the paypal.initAuthFlow() method from within an independent function, additionalValidators.validate(), which appears to check that all obligatory fields within the page are filled: payWithPayPal: function () { if (additionalValidators.validate()) { Braintree.checkout.paypal.initAuthFlow(); } } In less code-based terms, a custom PayPal integration should be launched by the user taking some sort of action, so pop-up blockers recognize the PayPal window is legitimate. Because your integration is being launched by an independent action - the validation of the fields on the page - pop-up blockers may consider it problematic, and interfere with the checkout. Your help solving this urgent issue is highly appreciated. Thanks, Chad
... View more