-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
ToJSON for StripeError #36
Comments
Hey, I don't think any sensitive info would be transmitted in the error messages (certainly not API keys, although maybe customer ids - but those aren't understandable). I see nothing wrong with a |
@dmjio so, do you usually make one-off API types for this sort of thing? |
Stripe's APIs don't accept JSON, but return it. A |
@dmjio oh sure, I was thinking of recycling the datatype for inputs from our SPA client, reduce petty surface area. |
@bitemyapp, Ah I see, I suppose we could add To/FromJSON instances to types like |
@bitemyapp would you want just |
@dmjio well, sorta just plugging away as I go really. Think |
Sounds like the beginnings of a branch, I'll start one. |
@dmjio ty ty <3 |
:) |
Is there ever sensitive information in the StripeError value? If not, could there be a ToJSON instance? It'd spare me playing data-relay with the error since I'd just be passing the same information down to the JS client.
The text was updated successfully, but these errors were encountered: