TL;DR
Upgrade to braintree-web 3.20.0 or newer. The original random non-rendering was resolved in 3.20.0, so a recurrence on a newer version is likely a different bug.
Steps
- Braintree hosted fields (card number, CVV, expiration date) intermittently fail
to render for some users. It hits both SDK 2.x and 3.x, is not reproducible on demand, and support tickets could not identify the cause from the outside. No pattern tied to a specific browser or integration.
- Upgrade to braintree-web 3.20.0 or newer. The maintainer confirmed the fix in
that release.
- Bump
braintree-web to ^3.20.0 (or a newer 3.x). - Rebuild and redeploy your checkout page.
Monitor: the original symptom was random, so give it a few days of traffic before calling it fixed.
- The original random non-rendering was resolved in 3.20.0, so a recurrence on a
newer version is likely a different bug. Capture reproducible steps (browser, device, console errors, hosted field config) and open a new issue rather than piling onto the old one.
Expected: The maintainer confirmed the fix in that release.
When to use
You are seeing this: Braintree hosted fields (card number, CVV, expiration date) intermittently fail to render for some users. Use this skill when you run into "Braintree hosted fields intermittently not rendering (fixed in 3.20.0)".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: braintree-web 3.20.0. If you are on something much newer or older, the details may have shifted.
Why this happens
It hits both SDK 2.x and 3.x, is not reproducible on demand, and support tickets could not identify the cause from the outside.