diff --git a/Demo/Application/Base/ContainmentViewController.swift b/Demo/Application/Base/ContainmentViewController.swift index 72b9957989..5c0aa39576 100644 --- a/Demo/Application/Base/ContainmentViewController.swift +++ b/Demo/Application/Base/ContainmentViewController.swift @@ -208,6 +208,8 @@ class ContainmentViewController: UIViewController { return PayPalWebCheckoutViewController(authorization: authorization) case "SEPADirectDebitViewController": return SEPADirectDebitViewController(authorization: authorization) + case "ShopperInsightsViewController": + return ShopperInsightsViewController(authorization: authorization) case "ThreeDSecureViewController": return ThreeDSecureViewController(authorization: authorization) case "VenmoViewController": diff --git a/Demo/Application/Base/Settings/Settings.bundle/Root.plist b/Demo/Application/Base/Settings/Settings.bundle/Root.plist index 40e45bb96a..6e88cab14c 100644 --- a/Demo/Application/Base/Settings/Settings.bundle/Root.plist +++ b/Demo/Application/Base/Settings/Settings.bundle/Root.plist @@ -27,6 +27,7 @@ iDEAL Amex SEPA Direct Debit + Shopper Insights Values @@ -40,6 +41,7 @@ IdealViewController AmexViewController SEPADirectDebitViewController + ShopperInsightsViewController diff --git a/Demo/Application/Features/ShopperInsightsViewController.swift b/Demo/Application/Features/ShopperInsightsViewController.swift index c71b7f04b3..0632489a38 100644 --- a/Demo/Application/Features/ShopperInsightsViewController.swift +++ b/Demo/Application/Features/ShopperInsightsViewController.swift @@ -4,7 +4,7 @@ import BraintreePayPal import BraintreeVenmo import BraintreeShopperInsights -class ShopperInsightsViewController: BaseViewController { +class ShopperInsightsViewController: PaymentButtonBaseViewController { private let shopperInsightsClient: BTShopperInsightsClient private let paypalClient: BTPayPalClient @@ -26,7 +26,7 @@ class ShopperInsightsViewController: BaseViewController { view.backgroundColor = UIColor(red: 250.0 / 255.0, green: 253.0 / 255.0, blue: 255.0 / 255.0, alpha: 1.0) let preferredPaymentMethodsButton = UIButton(type: .system) - preferredPaymentMethodsButton.setTitle("Fetch recommended shopper insights", for: .normal) + preferredPaymentMethodsButton.setTitle("Fetch recommended payments", for: .normal) preferredPaymentMethodsButton.translatesAutoresizingMaskIntoConstraints = false preferredPaymentMethodsButton.addTarget(self, action: #selector(preferredPaymentMethodsButtonTapped(_:)), for: .touchUpInside) view.addSubview(preferredPaymentMethodsButton)