Skip to content

Apple Pay not working in In App Web View #2609

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

Open
1 of 2 tasks
Vukan-Levi9 opened this issue Apr 28, 2025 · 6 comments
Open
1 of 2 tasks

Apple Pay not working in In App Web View #2609

Vukan-Levi9 opened this issue Apr 28, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@Vukan-Levi9
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I set applePayAPIEnabled to true but apple pay is still not visible.

Expected Behavior

Apple pay is visible when applePayAPIEnabled is set to true.

Steps with code example to reproduce

Steps with code example to reproduce
InAppWebViewSettings(
isInspectable: kDebugMode,
mediaPlaybackRequiresUserGesture: false,
allowsInlineMediaPlayback: true,
applePayAPIEnabled: true,
javaScriptCanOpenWindowsAutomatically: true,
supportMultipleWindows: true,
iframeAllowFullscreen: true
);

Stacktrace/Logs

Stacktrace/Logs
<Replace this line by pasting your stacktrace or logs here>

Flutter version

3.29.3

Operating System, Device-specific and/or Tool

iOS 18.4

Plugin version

6.1.5

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@Vukan-Levi9 Vukan-Levi9 added the bug Something isn't working label Apr 28, 2025
@Maatteogekko
Copy link

Try adding iframeAllow: 'payment'

@Vukan-Levi9
Copy link
Author

@Maatteogekko Tried, still the same, not working.

@Maatteogekko
Copy link

You could use the inspector on chrome or safari to see if there are any logs or network calls with more info

@Vukan-Levi9
Copy link
Author

@Maatteogekko not much info in the logs

@Maatteogekko
Copy link

Well, it's difficult to debug like this... can you confirm that apple pay works outside the webview? eg. by opening the site in a browser

@Vukan-Levi9
Copy link
Author

@Maatteogekko Yes it's working on asics.jp, that is the site that we are using since it is ASICS mobile app, you can try it yourself, we have over 100k users affected by this issue in production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants