OPPaymentCardDetailsFormDelegate

@objc
public protocol OPPaymentCardDetailsFormDelegate : NSObjectProtocol

Defines the interface that should be implemented to receive updates from instances of OPPaymentCardDetailsForm. Each callback method is optional so you only need to implement the ones you need.

Important

There are two versions of each callback method. One version contains a reference to the view and can be used if you are implementing these callbacks in your UI layer. If implementing callbacks in a data layer it is recommended to implement the versions that do not contain a reference to a view.
  • Called when all of the form view’s required inputs are valid or transition away from all being valid.

    Declaration

    Swift

    @objc
    optional func isValidChanged(_ form: OPPaymentCardDetailsForm, _ isValid: Bool)

    Parameters

    form

    The form that changed state

    isValid

    Whether or not the form is in a valid state

  • Called when all of the form view’s required inputs are valid or transition away from all being valid.

    Declaration

    Swift

    @objc
    optional func isValidChanged(_ isValid: Bool)

    Parameters

    isValid

    Whether or not the form is in a valid state