diff --git a/StripePaymentSheet/StripePaymentSheet/Source/Helpers/PaymentSheetLinkAccount.swift b/StripePaymentSheet/StripePaymentSheet/Source/Helpers/PaymentSheetLinkAccount.swift index 6034969f115..195ce7ca552 100644 --- a/StripePaymentSheet/StripePaymentSheet/Source/Helpers/PaymentSheetLinkAccount.swift +++ b/StripePaymentSheet/StripePaymentSheet/Source/Helpers/PaymentSheetLinkAccount.swift @@ -47,6 +47,8 @@ class PaymentSheetLinkAccount: PaymentSheetLinkAccountInfoProtocol { // Inline, email-prefilled case implied_v0_0 = "implied_consent_withspm_mobile_v0_0" + // Clicked button in separate Link sheet + case clicked_button_mobile = "clicked_button_mobile" } // Dependencies diff --git a/StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController-SignUpViewModel.swift b/StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController-SignUpViewModel.swift index 6cb1a28daa7..f4e20f966ca 100644 --- a/StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController-SignUpViewModel.swift +++ b/StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController-SignUpViewModel.swift @@ -165,8 +165,7 @@ extension PayWithLinkViewController { linkAccount.signUp( with: phoneNumber, legalName: requiresNameCollection ? legalName : nil, -// TODO(link): Was .button, add new consent action - consentAction: .checkbox_v0 + consentAction: .clicked_button_mobile ) { [weak self] result in switch result { case .success: diff --git a/StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift b/StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift index aa6a00a6659..b66b9fb4c1b 100644 --- a/StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift +++ b/StripePaymentSheet/StripePaymentSheet/Source/Internal/Link/Controllers/PayWithLinkViewController.swift @@ -304,7 +304,6 @@ extension PayWithLinkViewController: PayWithLinkCoordinating { option: .withPaymentDetails(account: linkAccount, paymentDetails: paymentDetails) ) ) { [weak self] result, _ in -// TODO(link): Log confirmation type here self?.view.isUserInteractionEnabled = true completion(result) } @@ -317,7 +316,6 @@ extension PayWithLinkViewController: PayWithLinkCoordinating { elementsSession: context.elementsSession, with: .applePay ) { [weak self] result, _ in - // TODO(link): Log confirmation type here switch result { case .canceled: // no-op -- we don't dismiss/finish for canceled Apple Pay interactions