braintree / braintree_ruby

Braintree Ruby library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
444 stars 195 forks source link

Braintree::OAuthGateway#revoke_access_token ErrorResult is used in an invalid way #226

Open jameswritescode opened 2 years ago

jameswritescode commented 2 years ago

General information

Issue description

When calling on OAuthGateway#revoke_access_token you could possibly get an ErrorResult, but the second parameter of ErrorResult is expected to be a Hash, not a String.

https://github.com/braintree/braintree_ruby/blob/4.7.0/lib/braintree/oauth_gateway.rb#L41

hollabaq86 commented 2 years ago

👋 @jameswritescode Thanks for bringing this to our attention! We'll partner with the engineering team that owns OAuth to get this fixed.

hollabaq86 commented 2 years ago

for internal tracking, ticket 1906