From a9a6f6074db895cd5a8c09aff2a41b72751e27f0 Mon Sep 17 00:00:00 2001 From: Justin Warmkessel Date: Thu, 19 Dec 2024 13:34:15 -0800 Subject: [PATCH] Reverse changes to PayPalClient --- Sources/BraintreePayPal/BTPayPalClient.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/BraintreePayPal/BTPayPalClient.swift b/Sources/BraintreePayPal/BTPayPalClient.swift index 2a5252855..8eab7029b 100644 --- a/Sources/BraintreePayPal/BTPayPalClient.swift +++ b/Sources/BraintreePayPal/BTPayPalClient.swift @@ -412,28 +412,28 @@ import BraintreeDataCollector } application.open(redirectURL) { success in - self.invokedOpenURLSuccessfully(success, completion: completion) + self.invokedOpenURLSuccessfully(success, url: redirectURL, completion: completion) } } - func invokedOpenURLSuccessfully(_ success: Bool, completion: @escaping (BTPayPalAccountNonce?, Error?) -> Void) { + func invokedOpenURLSuccessfully(_ success: Bool, url: URL, completion: @escaping (BTPayPalAccountNonce?, Error?) -> Void) { if success { apiClient.sendAnalyticsEvent( BTPayPalAnalytics.appSwitchSucceeded, + appSwitchURL: url, isVaultRequest: isVaultRequest, linkType: linkType, - payPalContextID: payPalContextID, - shopperSessionID: payPalRequest?.shopperSessionID + payPalContextID: payPalContextID ) BTPayPalClient.payPalClient = self appSwitchCompletion = completion } else { apiClient.sendAnalyticsEvent( BTPayPalAnalytics.appSwitchFailed, + appSwitchURL: url, isVaultRequest: isVaultRequest, linkType: linkType, - payPalContextID: payPalContextID, - shopperSessionID: payPalRequest?.shopperSessionID + payPalContextID: payPalContextID ) notifyFailure(with: BTPayPalError.appSwitchFailed, completion: completion) }