Closed primedev22 closed 1 year ago
How is window.braintreeClientInstance
being created? The error message is showing that the client is missing/not what was expected so something is causing it to not be ready for the rare times you see this issue, maybe some sort of race condition?
One suggestion is that you can switch to passing in authorization rather than client (docs here) which could circumvent any async problems
Closing this issue since we haven't heard back from OP.
General information
Issue description
This issue is hard to reproduce since it barely happens, and works well in most cases. But sometimes, the Braintree hosted fields never load properly and prevent the user from inputting anything. The screenshot below show the error in the console.
This is the code to create hosted fields on our side.