Skip to content

Commit

Permalink
add analytics for cardinal initialization exceptions (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxdesmarais authored Jun 7, 2023
1 parent adad496 commit ebc7207
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public void onResult(String consumerSessionId, Exception error) {
try {
cardinalClient.initialize(activity, configuration, request, cardinalInitializeCallback);
} catch (BraintreeException initializeException) {
braintreeClient.sendAnalyticsEvent("three-d-secure.cardinal-sdk.init.failed");
callback.onResult(null, initializeException);
}
}
Expand Down Expand Up @@ -237,6 +238,7 @@ public void onResult(String consumerSessionId, Exception error) {
try {
cardinalClient.initialize(context, configuration, request, cardinalInitializeCallback);
} catch (BraintreeException initializeException) {
braintreeClient.sendAnalyticsEvent("three-d-secure.cardinal-sdk.init.failed");
callback.onResult(null, null, initializeException);
}
}
Expand Down

0 comments on commit ebc7207

Please sign in to comment.