Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Payment Method (iDeal) Popups are blocked by Safari #718

Closed
mikkael131 opened this issue Jul 3, 2024 · 3 comments
Closed

Local Payment Method (iDeal) Popups are blocked by Safari #718

mikkael131 opened this issue Jul 3, 2024 · 3 comments

Comments

@mikkael131
Copy link

mikkael131 commented Jul 3, 2024

General information

  • SDK version: v3.102.0
  • Environment: both Sandbox and Production
  • Browser and OS: Safari on Mac or iOS

Issue description

We have recently implemented Braintree iDeal for our Dutch market. However during testing we have noticed, that the Braintree SDK fails to open the Localy Payment PopUp when using Safari with default settings. Everything works for Chrome/Edge/Firefox.

In our investigation we found out, that this is only an issue when the "BuyNow"-Button not only triggers the "StartPayment" but also does an asynchronous request to our backend to start the order process.

Here is a simple example which demonstartes the issue: https://codepen.io/mikkael131/pen/xxNvQPL (please provide the tokenization key as CLIENT_AUTHORIZATION and the merchantAccountId as MERCHANT_ACCOUNT_ID to test it)

The following error is being logged to the console:
image

Our expectation is, that we do not have to worry about blocked popups or different browsers, as this should be abstracted by Braintree and the SDK. As a result, Braintree SDK should handle failed popup openings and should provide a way to redirect the user offsite with utilizing the provided fallbackUrl to return the customer back into the shop.

@mikkael131 mikkael131 changed the title iDeal Popups are blocked by Safari and onPaymentStart is called with PaymentId iDeal Popups are blocked by Safari Jul 10, 2024
@mikkael131 mikkael131 changed the title iDeal Popups are blocked by Safari Local Payment Method (iDeal) Popups are blocked by Safari Jul 10, 2024
@jplukarski
Copy link
Contributor

Hello @mikkael131 , thanks for writing in. We are aware of this issue. This is due to a recent change with Safari iOS now defaulting to block popups.

We are currently working on a full-page redirect solution for this issue as you describe above. We currently don't have a set timeline but hope to have that available by this fall.

In the meantime, the best workaround we can suggest is to have the buyer disable popups on iOS Safari or recommend using a different browser.

We'll keep this issue open until we are able to provide a full page redirect solution.

@braintreeps
Copy link
Contributor

Hi @mikkael131! Thank you for reporting this issue. We've released a new Full Page Redirect feature for Local Payment Methods that should solve the issue you're seeing. You can read more about it on our official docs: https://developer.paypal.com/braintree/docs/guides/local-payment-methods/client-side-custom/javascript/v3/#redirect-flow

@Swapnull
Copy link

Swapnull commented Jan 6, 2025

Hi @mikkael131! Thank you for reporting this issue. We've released a new Full Page Redirect feature for Local Payment Methods that should solve the issue you're seeing. You can read more about it on our official docs: https://developer.paypal.com/braintree/docs/guides/local-payment-methods/client-side-custom/javascript/v3/#redirect-flow

Hey! Do you have this option available for Paypal? We are hitting the same safari popup issue and I can't find anything in the docs about using a redirect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants