Skip to content

Conversation

@bc-wpietrzak
Copy link
Contributor

@bc-wpietrzak bc-wpietrzak commented Nov 17, 2025

What/Why?

A harmless console error shows when Apple Pay is selected from the list of payment methods in checkout.
It's caused by Apple Pay SDK script being loaded more than once (in case of checkout it's loaded first on customer step, and for the second time on payment step).
This PR introduces a check inside loadSdk function, so the SDK will not be loaded when there's already valid ApplePaySession in window.

Rollout/Rollback

Revert this PR

Testing

Before:

Screen.Recording.2025-11-17.at.23.01.35.mov

After:

Screen.Recording.2025-11-17.at.22.55.39.mov

@bc-wpietrzak bc-wpietrzak marked this pull request as ready for review November 17, 2025 22:05
@bc-wpietrzak bc-wpietrzak requested review from a team as code owners November 17, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants