Payment Button

  • 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 OPPPaymentBrandCard

    Swift

    let OPPPaymentBrandCard: String
  • 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.presentCheckout(withPaymentBrand:loadingHandler:completionHandler:cancelHandler:) in button action method.

    See more

    Declaration

    Swift

    @objc(OPPPaymentButton)
    @MainActor
    public class OPPPaymentButton : UIButton