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

Rename PayPal APIs #817

Merged
merged 8 commits into from
Nov 8, 2023
Merged

Rename PayPal APIs #817

merged 8 commits into from
Nov 8, 2023

Conversation

sarahkoop
Copy link
Contributor

@sarahkoop sarahkoop commented Nov 6, 2023

Summary of changes

Checklist

  • Added a changelog entry

Authors

@sarahkoop sarahkoop requested a review from a team as a code owner November 6, 2023 16:56
@@ -46,8 +46,8 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
braintreeClient = getBraintreeClient();
payPalClient = new PayPalClient(braintreeClient);
payPalLauncher = new PayPalLauncher(
payPalBrowserSwitchResult -> payPalClient.onBrowserSwitchResult(
payPalBrowserSwitchResult, (payPalAccountNonce, error) -> {
payPalPaymentAuthResult -> payPalClient.tokenize(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
payPalPaymentAuthResult -> payPalClient.tokenize(
payPalAuthResult -> payPalClient.tokenize(

nit: Maybe we can make it more concise by removing the word payment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean rename the entire class or just the variables in these callbacks? I renamed the variables to paymentAuthResult to make it more concise. I think AuthResult might be a little too generic for the types but open to opinions on that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I guess the overall naming convention in general to be more specific. I get that adding the word payment may make it more descriptive though. Total take or leave.

I've got the Swift naming guidelines in mind. I find it to be a useful grammatical guide to naming in any language even though it's geared towards Swift.

Copy link
Contributor

@jaxdesmarais jaxdesmarais left a comment

Choose a reason for hiding this comment

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

🔥

v5_MIGRATION_GUIDE.md Outdated Show resolved Hide resolved
@sarahkoop sarahkoop merged commit 0e8bbb9 into v5 Nov 8, 2023
2 checks passed
@sarahkoop sarahkoop deleted the rename_paypal_apis branch November 8, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants