From fa0184818147e11d25891f271e30e7576745652c Mon Sep 17 00:00:00 2001 From: Victoria Park Date: Tue, 7 Jan 2025 07:29:24 -0800 Subject: [PATCH] PayPal vault analytics --- .../PayPalWebPayments/PayPalWebCheckoutClient.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/PayPalWebPayments/PayPalWebCheckoutClient.swift b/Sources/PayPalWebPayments/PayPalWebCheckoutClient.swift index 2d2f8743..0f1380af 100644 --- a/Sources/PayPalWebPayments/PayPalWebCheckoutClient.swift +++ b/Sources/PayPalWebPayments/PayPalWebCheckoutClient.swift @@ -143,9 +143,9 @@ public class PayPalWebCheckoutClient: NSObject { context: self, sessionDidDisplay: { [weak self] didDisplay in if didDisplay { - self?.analyticsService?.sendEvent("paypal-vault:browser-presentation:succeeded") + self?.analyticsService?.sendEvent("paypal-web-payments:vault-wo-purchase:auth-challenge-presentation:succeeded") } else { - self?.analyticsService?.sendEvent("paypal-vault:browser-presentation:failed") + self?.analyticsService?.sendEvent("paypal-web-payments:vault-wo-purchase:auth-challenge-presentation:failed") } }, sessionDidComplete: { url, error in @@ -218,17 +218,17 @@ public class PayPalWebCheckoutClient: NSObject { } private func notifyVaultSuccess(for result: PayPalVaultResult, completion: (PayPalVaultResult?, CoreSDKError?) -> Void) { - analyticsService?.sendEvent("paypal-web-payments:vault-wo-purchase:succeeded") + analyticsService?.sendEvent("paypal-web-payments:vault-wo-purchase:auth-challenge-succeeded") completion(result, nil) } private func notifyVaultFailure(with error: CoreSDKError, completion: (PayPalVaultResult?, CoreSDKError?) -> Void) { - analyticsService?.sendEvent("paypal-web-payments:vault-wo-purchase:failed") + analyticsService?.sendEvent("paypal-web-payments:vault-wo-purchase:auth-challenge-failed") completion(nil, error) } private func notifyVaultCancelWithError(with vaultError: CoreSDKError, completion: (PayPalVaultResult?, CoreSDKError?) -> Void) { - analyticsService?.sendEvent("paypal-web-payments:vault-wo-purchase:canceled") + analyticsService?.sendEvent("paypal-web-payments:vault-wo-purchase:auth-challenge-canceled") completion(nil, vaultError) } }