Skip to content

Commit

Permalink
Move eligibility logic to extension property
Browse files Browse the repository at this point in the history
  • Loading branch information
mats-stripe committed Oct 24, 2024
1 parent ff0d2ee commit 8a6eeb7
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ extension PaymentSheet {
recommendedStripePaymentMethodTypes.map { PaymentMethodType.stripe($0) }
// External Payment Methods
+ elementsSession.externalPaymentMethods.map { PaymentMethodType.external($0) }

let hasIneligibleConfiguration = configuration.billingDetailsCollectionConfiguration.email == .never && configuration.defaultBillingDetails.email?.isEmpty != false

// We should manually add Instant Debits as a payment method when:
// - Link is an available payment method.
Expand Down

0 comments on commit 8a6eeb7

Please sign in to comment.