Skip to content

Commit

Permalink
Fix event name for EPMs. (#9923)
Browse files Browse the repository at this point in the history
  • Loading branch information
samer-stripe authored Jan 16, 2025
1 parent 710876f commit 23fab5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ internal sealed class PaymentSheetEvent : AnalyticsEvent {
is PaymentSelection.Saved -> "savedpm"
is PaymentSelection.Link,
is PaymentSelection.New.LinkInline -> "link"
is PaymentSelection.ExternalPaymentMethod,
is PaymentSelection.New -> "newpm"
is PaymentSelection.ExternalPaymentMethod -> "epm"
null -> "unknown"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ class PaymentSheetEventTest {
assertThat(
newPMEvent.eventName
).isEqualTo(
"mc_complete_payment_epm_success"
"mc_complete_payment_newpm_success"
)
assertThat(
newPMEvent.params
Expand Down Expand Up @@ -748,7 +748,7 @@ class PaymentSheetEventTest {
assertThat(
newPMEvent.eventName
).isEqualTo(
"mc_complete_payment_epm_failure"
"mc_complete_payment_newpm_failure"
)
assertThat(
newPMEvent.params
Expand Down

0 comments on commit 23fab5b

Please sign in to comment.