-
Notifications
You must be signed in to change notification settings - Fork 241
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
Paypal analytics #1231
Paypal analytics #1231
Changes from all commits
7f7218c
f5a6b23
6177a2a
1362366
0eec949
3b98d61
94a370a
7385659
4ca4b66
d1bf6e0
32b963a
50684dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -625,7 +625,6 @@ public void tokenize_whenPayPalInternalClientTokenizeResult_sendsAppSwitchSuccee | |
assertEquals(payPalAccountNonce, ((PayPalResult.Success) result).getNonce()); | ||
|
||
AnalyticsEventParams params = new AnalyticsEventParams(); | ||
verify(braintreeClient).sendAnalyticsEvent(PayPalAnalytics.HANDLE_RETURN_STARTED, params); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Curious why we needed to remove this check from this tests. It looks like this test returns There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We were previously sending the events on After some refactor by @tdchow, we are now able to send the events from PayPalLauncher. I've moved the logic there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha, so there is no way in this test to mock calling PayPalLauncher to verify this event is sent with the app switch success events? If not that's fine, moreso for my understanding since on iOS we don't have an internal vs external client. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I may not have understood your question correctly. I've moved the event logging into PayPalLauncher and I've a test in its tests. See: https://github.com/braintree/braintree_android/pull/1231/files/50684dcbba1170da5419d61df0a7d882f0e82959#diff-c4a51a1d2f652fee6eef372ea3a5d1e232de64156bc91c97cf5b4f45f7420e2bR103 Does that answer your question? If not, we can sync off-comment; online. |
||
params.setPayPalContextId("EC-HERMES-SANDBOX-EC-TOKEN"); | ||
verify(braintreeClient).sendAnalyticsEvent(PayPalAnalytics.TOKENIZATION_SUCCEEDED, params); | ||
AnalyticsEventParams appSwitchParams = new AnalyticsEventParams( | ||
|
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.
not sure why
HANDLE_RETURN_STARTED
was tied to app switch flow, but I'm NOT copying that logic intoPayPalLauncher
.