Throw error with Stripe error code key in Android
See original GitHub issueFirst of all, thanks for an awesome library. This is so helpful to work with.
in iOS, I can localize error messages by checking an error code key error.userInfo['com.stripe.lib:StripeErrorCodeKey]
and mapping it to a localized error message.
but in Android, It seems that thrown errors do not have the key.
mapping message to localized message seems fragile, so I think it’s very nice if StripeErrorCodeKey is thrown on Android as same as iOS.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Error codes | Stripe Documentation
Some Errors include an error code—a short string with a brief explanation. These codes play a role in our recommended error handling techniques....
Read more >Handle errors | Stripe Documentation
Catch and respond to declines, invalid data, network problems, and more. Stripe offers many kinds of errors. They can reflect external events, like...
Read more >Handle errors | Stripe Documentation
Catch and respond to declines, invalid data, network problems, and more. Stripe offers many kinds of errors. They can reflect external events, ...
Read more >Stripe API reference – Errors – curl
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries....
Read more >Low-level error handling | Stripe Documentation
They return an HTTP response with a 4xx response code. For example, the API servers might return a 401 if you provided an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@isnifer thanks for your reply.
I use something like below. this works only for iOS and not for Android.
Any progress on this?