Closed J-Gonzalez closed 7 months ago
Two questions:
Hi @J-Gonzalez , to add onto what @hollabaq86 previously mentioned, could you please update to the latest version of Drop-In? (we just released a small tweak for ApplePay).
Additionally, if you're still seeing this issue, do you happen to have your integration in a test page or code sandbox that we could access? Any kind of reproducible sample would help. We haven't received any other reports from other merchants about this, so it makes me inclined to believe there's something strange going on in the React integration.
Looks like the issue was potentially related to how the react.js setup of the widget and the ref not maintaining state correctly. I couldn't explain why newer iphones did not work while the old ones did which this React bug (that attempted to double render/mount the component) - but it did solve it.
Issue resolved as user error (which presented in a confusing way across different devices) ✅
General information
braintree-web-drop-in": "^1.40.2",
Issue description
With the following code snippets below, on iPhone 8 or other older devices, the drop-in widget loads fine and displays both the card and applePay options. ApplePay works as expected.
On newer devices, (iPhone 12 and 13s tested), the entire drop-in widget fails to load/render. There seem to be no errors in the logs, but the entire widget is missing (and neither card nor apple pay options appear).
Not sure what changes in iPhone versions would cause this to work in older but not newer devices.
React useEffect on component load