Closed tagoro9 closed 7 years ago
You're right—our docs are wrong. find
is supposed to return a PaymentMethodNonce
but is documented incorrectly.
We'll close this issue once our docs are fixed.
@tagoro9 Hi, sorry for the delay. https://developers.braintreepayments.com/reference/request/payment-method-nonce/find/java should be updated with the correct docs. Thanks for reporting the issue.
No problem. Thanks for fixing it!
The docs for the java SDK indicate that the
PaymentMethodNonce.find()
method returns aResult
, but the code is returning aPaymentMethodNonce
.By looking at the implementation in Ruby, it looks like it is wrapping the nonce in a result. So I guess there is a bug in the java SDK.
Please, ignore this PR if the class has the expected behavior. If so, I don't know how to suggest an edit to the docs so they reflect what the code is actually doing.
Thanks.