Payment Button

  • Class that extends UIButton in order to esily integrate separate payment methods in the app.

    By default button contains appropriate logo if a valid payment method is set. Button can be fully customized as common UIButton.

    To create and submit a transaction, use -[OPPCheckoutProvider presentCheckoutWithPaymentBrand:loadingHandler:completionHandler:cancelHandler:] in button action method.

    See more

    Declaration

    Objective-C

    @interface OPPPaymentButton : UIButton

    Swift

    class OPPPaymentButton : UIButton
  • A constant to be used instead of specific card brand. The brand will be detected automatically based on card number.

    Declaration

    Objective-C

    extern NSString *const _Nonnull OPPPaymentBrandCard

    Swift

    let OPPPaymentBrandCard: String