-
Notifications
You must be signed in to change notification settings - Fork 121
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
getCardNonce causes an app crash on iOS when an error message is returned #91
Comments
Example of response which we're attempting to JSON serialise:
|
Feel free to use craigcartmell@32a2523 if you're finding the same issue and are desperate for a solution. It will just return a single failure string, e.g. |
simonasdev
referenced
this issue
in simonasdev/react-native-braintree-xplat
Apr 17, 2018
Remove JSON incompatible objects from error object which is passed back to JS
+1 |
1 similar comment
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
Calling getCardNonce on an iOS device causes the full app to crash when an error message is returned from the request.
This appears to be an error in the way the library is attempting to serialise the response from the getCardNonce request.
Maybe it needs to use NSJSONSerialization isValidObject (Disclaimer, I'm no objective-c expert)?
Step to replicate
Send any invalid data to
BTClient.getCardNonce()
, e.g. an empty object or invalid card number.Versions
[email protected]
[email protected]
Stacktrace
The text was updated successfully, but these errors were encountered: