Skip to content

Commit

Permalink
Add analytics event for failure creating 3ds2 params. (#4281)
Browse files Browse the repository at this point in the history
  • Loading branch information
brnunes-stripe authored Oct 12, 2021
1 parent 470bccf commit 33aa7ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ internal enum class AnalyticsEvent(internal val code: String) {
StripeUrlRetrieve("retrieve_stripe_url"),

// 3DS2
Auth3ds2RequestParamsFailed("3ds2_authentication_request_params_failed"),
Auth3ds2Fingerprint("3ds2_fingerprint"),
Auth3ds2Start("3ds2_authenticate"),
Auth3ds2Frictionless("3ds2_frictionless_flow"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ internal class Stripe3ds2TransactionViewModel @Inject constructor(
Stripe3ds2Fingerprint(args.nextActionData)
)
}.getOrElse {
analyticsRequestExecutor.executeAsync(
analyticsRequestFactory.createRequest(AnalyticsEvent.Auth3ds2RequestParamsFailed)
)

NextStep.Complete(
PaymentFlowResult.Unvalidated(
exception = StripeException.create(it)
Expand Down

0 comments on commit 33aa7ef

Please sign in to comment.