             case .success((let intent, let paymentMethods, let linkAccount)):
                 // Set the PaymentSheetViewController as the content of our bottom sheet
                 let isApplePayEnabled = StripeAPI.deviceSupportsApplePay() && self.configuration.applePay != nil
+
                 let presentPaymentSheetVC: (PaymentSheetLinkAccount?) -> Void = { linkAccount in
                     let paymentSheetVC = PaymentSheetViewController(
                         intent: intent,

                }
            }

            let payWithLinkVC = PayWithLinkViewController(
                linkAccount: linkAccount,
                intent: intent,
                configuration: self.configuration,
                paymentMethodParams: paymentMethodParams
            )

            payWithLinkVC.modalPresentationStyle = .overFullScreen
            payWithLinkVC.payWithLinkDelegate = self
            self.bottomSheetViewController.present(payWithLinkVC, animated: true)
        }

        linkAccount.startVerification { result in

                        self.configuration.style.configure(paymentSheetVC)
                    }
                    #endif

                    let updateBottomSheet: () -> Void = {
                        self.bottomSheetViewController.contentStack = [paymentSheetVC]
                    }

                    if linkAccount?.sessionState == .verified {
                        self.presentPayWithLinkController(
                            from: self.bottomSheetViewController,
                            linkAccount: linkAccount,
                            intent: intent,
                            completion: {
                                // Update the bottom sheet after presenting the Link controller
                                // to avoid briefly flashing the PaymentSheet in the middle of
                                // the View Controller transition.
                                updateBottomSheet()
                            }
                        )
                    } else {
                        updateBottomSheet()
                    }
                }
                
                if let linkAccount = linkAccount,
