Skip to content
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

Handle OAuth error message in StripeException #1498

Merged
merged 1 commit into from
Feb 4, 2019

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe
cc @stripe/api-libraries

stripe-dotnet uses the same StripeError object for both regular and OAuth errors, but depending on which it is, only certain properties will be filled.

Despite this, when building a StripeException, the Message property is always passed as the exception message. This property is only filled for regular API errors. For OAuth errors, ErrorDescription should be used as the exception message instead.

Fixes #1497.

@ob-stripe ob-stripe merged commit 6453f36 into master Feb 4, 2019
@ob-stripe ob-stripe deleted the ob-exception-message branch February 4, 2019 17:16
@ob-stripe
Copy link
Contributor Author

Released as 22.8.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants