From d23bdf333815cc00447fc18cd86f4254aa392b33 Mon Sep 17 00:00:00 2001 From: Boris Nikolic Date: Thu, 6 Jun 2024 19:23:13 +0200 Subject: [PATCH] Quick fix to hide NOL pay from Drop-In --- .../Root/PrimerUniversalCheckoutViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/PrimerSDK/Classes/User Interface/Root/PrimerUniversalCheckoutViewController.swift b/Sources/PrimerSDK/Classes/User Interface/Root/PrimerUniversalCheckoutViewController.swift index bca7939ffc..53e2aeee0b 100644 --- a/Sources/PrimerSDK/Classes/User Interface/Root/PrimerUniversalCheckoutViewController.swift +++ b/Sources/PrimerSDK/Classes/User Interface/Root/PrimerUniversalCheckoutViewController.swift @@ -20,7 +20,9 @@ internal class PrimerUniversalCheckoutViewController: PrimerFormViewController { private var payButton: PrimerButton! private var selectedPaymentMethod: PrimerPaymentMethodTokenData? private let theme: PrimerThemeProtocol = DependencyContainer.resolve() - private let paymentMethodConfigViewModels = PrimerAPIConfiguration.paymentMethodConfigViewModels + // Don't show NOL in Drop-In quick hacky fix + private let paymentMethodConfigViewModels = PrimerAPIConfiguration.paymentMethodConfigViewModels.filter({ !($0 is NolPayTokenizationViewModel) }) + private var onClientSessionActionUpdateCompletion: ((Error?) -> Void)? private var singleUsePaymentMethod: PrimerPaymentMethodTokenData? private var resumePaymentId: String?