Skip to content

Commit

Permalink
Set billingDetailsCollectionConfiguration.email to correctly turn Str…
Browse files Browse the repository at this point in the history
…ipe Link on or off
  • Loading branch information
amy-at-kickstarter committed May 15, 2024
1 parent affad96 commit 366742e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/ViewModels/PledgePaymentMethodsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ public final class PledgePaymentMethodsViewModel: PledgePaymentMethodsViewModelT

if featureStripeLinkEnabled() {
configuration.defaultBillingDetails.email = AppEnvironment.current.currentUserEmail
configuration.billingDetailsCollectionConfiguration.email = .automatic
} else {
configuration.billingDetailsCollectionConfiguration.email = .always
}

let data = PaymentSheetSetupData(
Expand Down

0 comments on commit 366742e

Please sign in to comment.