diff --git a/YandexCheckoutPayments/Private/Services/Analytics/AnalyticsEvent.swift b/YandexCheckoutPayments/Private/Services/Analytics/AnalyticsEvent.swift index 0863553c..d2cc0e67 100644 --- a/YandexCheckoutPayments/Private/Services/Analytics/AnalyticsEvent.swift +++ b/YandexCheckoutPayments/Private/Services/Analytics/AnalyticsEvent.swift @@ -51,8 +51,8 @@ enum AnalyticsEvent { /// The user is not authorized. case withoutAuth - /// Successfully completed authorization in Yandex.Login. - case yandexLogin + /// Successfully completed authorization in Money center authorization + case moneyAuth /// Successful payment authorization in the wallet. case paymentAuth diff --git a/YandexCheckoutPayments/Private/Services/Analytics/AnalyticsProvider.swift b/YandexCheckoutPayments/Private/Services/Analytics/AnalyticsProvider.swift index a8d51cc7..ade0f635 100644 --- a/YandexCheckoutPayments/Private/Services/Analytics/AnalyticsProvider.swift +++ b/YandexCheckoutPayments/Private/Services/Analytics/AnalyticsProvider.swift @@ -24,15 +24,15 @@ struct AnalyticsProvider: AnalyticsProviding { if hasReusableWalletToken { authType = .paymentAuth tokenType = .multiple - // TODO: MOC-762 - // } else if authorizationService.getYandexToken() != nil { - // authType = .yandexLogin - // tokenType = .single + } else if keyValueStoring.getString( + for: KeyValueStoringKeys.moneyCenterAuthToken + ) != nil { + authType = .moneyAuth + tokenType = .single } else { authType = .withoutAuth tokenType = nil } - return (authType, tokenType) } }