BCMCComponent

public final class BCMCComponent : PaymentComponent, PresentableComponent, Localizable

A component that handles BCMC card payments.

  • The card payment method.

    Declaration

    Swift

    public let paymentMethod: PaymentMethod
  • The delegate of the component.

    Declaration

    Swift

    public weak var delegate: PaymentComponentDelegate?
  • Indicates if form will show a large header title. True - show title; False - assign title to a view controllers’s title. Defaults to true.

    Declaration

    Swift

    public var showsLargeTitle: Bool { get set }
  • Indicates if the field for entering the holder name should be displayed in the form. Defaults to false.

    Declaration

    Swift

    public var showsHolderNameField: Bool { get set }
  • Indicates if the field for storing the card payment method should be displayed in the form. Defaults to true.

    Declaration

    Swift

    public var showsStorePaymentMethodField: Bool { get set }
  • Initializes the Bancontact component.

    Declaration

    Swift

    public init(paymentMethod: BCMCPaymentMethod,
                publicKey: String,
                style: FormComponentStyle = FormComponentStyle())

    Parameters

    paymentMethod

    The Bancontact payment method.

    publicKey

    The key used for encrypting card data.

    style

    The Component’s UI style.

Presentable Component Protocol

  • The payment information.

    Declaration

    Swift

    public var payment: Payment? { get set }
  • Returns a view controller that presents the payment details for the shopper to fill.

    Declaration

    Swift

    public var viewController: UIViewController { get }
  • Stops any processing animation that the view controller is running.

    Declaration

    Swift

    public func stopLoading(withSuccess success: Bool, completion: (() -> Void)?)

    Parameters

    success

    Boolean indicating the component should go to a success or failure state.

    completion

    Completion block to be called when animations are finished.