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

Braintree java issue 119 #120

Closed

Conversation

kmichalak
Copy link

@kmichalak kmichalak commented Mar 30, 2023

Summary

Checklist

  • Added changelog entry
  • Ran unit tests (mvn verify -DskipITs)
  • I understand that unless this is a Draft PR or has a DO NOT MERGE label, this PR is considered to be in a deploy ready state and can be deployed if merged to main

Kamil Michalak added 2 commits March 30, 2023 17:04
…when API returns error on client token generation (could not find customer by given customer_id)
@hollabaq86
Copy link
Contributor

Thanks @kmichalak! We;ll take a look and provide feedback is needed.

For internal tracking, issue 7173

Copy link
Contributor

@saralvasquez saralvasquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really great @kmichalak. Thank you for putting this together! Just a couple nits

CHANGELOG.md Outdated Show resolved Hide resolved
src/main/java/com/braintreegateway/ClientTokenGateway.java Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@kmichalak
Copy link
Author

Thanks @saralvasquez for pointing that out. I've done necessary updates. This should be find now I guess?

@saralvasquez
Copy link
Contributor

@kmichalak thanks for that update! We'll give it a final pass and get it pulled in

@saralvasquez
Copy link
Contributor

Hi! Sorry this process has taken so long. My team and I have been discussing this issue for a while since it's a lot more complicated than it initially seemed. Ultimately, we concluded that we can't pull in these changes. I will post a detailed explanation in the open GitHub issue, but the TLDR of it is that these changes would break user integrations by changing the base functionality of the generate method. We have to assume users aren't set up to automatically handle new exceptions thrown when the generate call would normally just return null. In order to stay in line with semantic versioning, we can't break users' integrations unless we put out a new major version, which we don't have the bandwidth for at the moment. We do plan on changing how client token generation handles nonexistent customers in all of the SDKs and we will find a way to credit you in the Java SDK when the next major version comes out. Thank you so much for putting in this work! We're really sorry it won't be used just yet.

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.

3 participants