STPBankSelectionViewController

public class STPBankSelectionViewController: STPCoreTableViewController, UITableViewDataSource,
  UITableViewDelegate

This view controller displays a list of banks of the specified type, allowing the user to select one to pay from. Once a bank is selected, it will return a PaymentMethodParams object, which you can use to confirm a PaymentIntent or inspect to obtain details about the selected bank.

  • A convenience initializer; equivalent to calling init( bankMethod:bankMethod configuration:STPPaymentConfiguration.shared theme:STPTheme.defaultTheme.

    Declaration

    Swift

    @objc
    public convenience init(bankMethod: STPBankSelectionMethod)
  • Declaration

    Swift

    @objc
    public convenience required init(theme: STPTheme?)
  • Initializes a new STPBankSelectionViewController with the provided configuration and theme. Don’t forget to set the delegate property after initialization.

    Declaration

    Swift

    @objc
    public init(
      bankMethod: STPBankSelectionMethod,
      configuration: STPPaymentConfiguration,
      theme: STPTheme
    )

    Parameters

    bankMethod

    The user will be presented with a list of banks for this payment method. STPBankSelectionMethodFPX is currently the only supported payment method.

    configuration

    The configuration to use. This determines the Stripe publishable key to use when querying metadata about the banks. - seealso: STPPaymentConfiguration

    theme

    The theme to use to inform the view controller’s visual appearance. - seealso: STPTheme

  • The view controller’s delegate. This must be set before showing the view controller in order for it to work properly. - seealso: STPBankSelectionViewControllerDelegate

    Declaration

    Swift

    @objc
    public weak var delegate: STPBankSelectionViewControllerDelegate?
  • The API Client to use to make requests. Defaults to STPAPIClient.shared

    Declaration

    Swift

    @objc
    public var apiClient: STPAPIClient