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

v5.41.0+ Drop-in broken in latest Safari when loading inside an iFrame #2149

Closed
ollym opened this issue May 9, 2023 · 10 comments
Closed

v5.41.0+ Drop-in broken in latest Safari when loading inside an iFrame #2149

ollym opened this issue May 9, 2023 · 10 comments

Comments

@ollym
Copy link

ollym commented May 9, 2023

When loading a Drop-in within an iFrame. We get the following error in the console:

[Error] InvalidAccessError: Trying to start an Apple Pay session from a document with an different security origin than its top-level frame.

My expectation is that Apple Pay is just skipped if initialisation fails.

If we add the following to the /session endpoint it fixes the issue:

blockedPaymentMethods: ['applepay']

But means we don't have ApplePay which is not ideal.

@ollym
Copy link
Author

ollym commented May 9, 2023

Just tried v5.42.1 and the same error.

CleanShot 2023-05-09 at 23 28 54@2x

Please fix this, we don't want to have apple pay disabled universally for long.

@ollym ollym changed the title v5.41.0 Drop-in broken in latest Safari when loading inside an iFrame v5.41.0+ Drop-in broken in latest Safari when loading inside an iFrame May 9, 2023
@ollym
Copy link
Author

ollym commented May 9, 2023

@ollym
Copy link
Author

ollym commented May 9, 2023

I just downloaded the latest Safari Technology Preview and can confirm it works:

CleanShot 2023-05-09 at 23 45 31@2x

You just need to add allow="payment" to your parent iframe.

But for now Adyen - you should fix this and gracefully fallback to not offering ApplePay if the initialisation failed.

@EduardoMateos
Copy link

adyen please fix this. :)

@ollym
Copy link
Author

ollym commented May 24, 2023

@Adyen can someone please acknowledge this issue and its being looked at?

@ribeiroguilherme
Copy link
Contributor

Hi @ollym ,

We acknowledged the issue and we are planning to take a look into it in the next weeks. There are other high priority tasks at this moment which the team is busy with, so that is why we couldn't investigate this further. Apologies for the delay

In the meantime: Can you share which version of Safari is this happening?

@ollym
Copy link
Author

ollym commented May 26, 2023

Every version, including iOS

@ribeiroguilherme
Copy link
Contributor

And what is your current Safari version that you are testing?

@ollym
Copy link
Author

ollym commented May 26, 2023

Version 16.4 (18615.1.26.110.1)

@ribeiroguilherme
Copy link
Contributor

ribeiroguilherme commented Jun 15, 2023

@ollym we released 5.45.0 which contains the fix for this issue. Thanks for reaching out to us. cheers!

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

3 participants