-
Notifications
You must be signed in to change notification settings - Fork 76
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
Drop in ui not showing #7
Comments
It sounds like fetching the token from the server is the issue since Drop-in launches fine with a hard coded client token. You can verify your client token is correct by following these steps: When Drop-in is passed a malformed authorization it finishes with an error. This example usage in our README shows where that error is referenced back to your activity. That exception will clue into why Drop-in is not starting. |
@jin9393 I'm going to close this. Feel free to reopen it if you are still having issues. |
Sorry I forget I posted here as i have been on email with braintree support team. Yes i am still facing the same error since that day. onActivityResult, i cant cast data to exception. The drop-in ui is still not loading. I have sent over the whole code to the support team and still waiting for their feedback. |
You shouldn't cast If some serializable extra exists under |
My bad, I did exactly what is stated on the example and i got this when i try to log the exception. |
Another thing to take note is the onActivityResult resultCode. The resultCode is returning 1 and its not loading into resultCode == Activity.RESULT_OK, even though the drop-in is not loading |
Hmm, we do pass a string as a value for
This makes sense, Please check the value you're getting back for |
Yes client token was invalid. Thing have been solved. The token from the server pass in with a extra double quote and it was insert into the drop-in ui token. Was solved after removing it. Thanks you very much |
I used async to fetch token from my server and at the end of the async i call the dropin function and nothing happen after that. However, when i hard coded the token into a string and place it into the dropin function the ui appear. Any way to solve this?
The text was updated successfully, but these errors were encountered: