-
Notifications
You must be signed in to change notification settings - Fork 238
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
Rename PayPal APIs #817
Conversation
@@ -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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
payPalPaymentAuthResult -> payPalClient.tokenize( | |
payPalAuthResult -> payPalClient.tokenize( |
nit: Maybe we can make it more concise by removing the word payment
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
Summary of changes
Checklist
Authors